Skip to content

Commit 38c333e

Browse files
Alexander PeltzerAlexander Peltzer
authored andcommitted
Speed up using pigz!
1 parent 8720bef commit 38c333e

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ dependencies:
2222
- bioconda::pmdtools=0.60
2323
- conda-forge::r-rmarkdown=1.10
2424
- conda-forge::libiconv=1.15
25+
- conda-forge::pigz=2.3.4
2526
- bioconda::sequencetools=1.2.2
2627
- bioconda::preseq=2.0.3
2728
- bioconda::fastp=0.19.4

main.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ process samtools_filter {
721721
prefix="$bam" - ~/(\.bam)?/
722722
rm_type = "${params.bam_unmapped_keep_type}" == 'bam' ? 'bam' : 'fastq.gz'
723723
rm_unmapped = "${params.bam_discard_unmapped}" ? "rm *.unmapped.${rm_type}" : ''
724-
fq_convert = "${params.bam_unmapped_to_fastq}" ? "samtools fastq -tn ${prefix}.unmapped.bam | gzip > ${prefix}.unmapped.fq.gz" : ''
724+
fq_convert = "${params.bam_unmapped_to_fastq}" ? "samtools fastq -tn ${prefix}.unmapped.bam | pigz -p ${task.cpus} > ${prefix}.unmapped.fq.gz" : ''
725725

726726

727727
if("${params.bam_separate_unmapped}"){

0 commit comments

Comments
 (0)