Skip to content

Commit 3771f3a

Browse files
committed
Revert "rollback change about unneeded sort operation"
This reverts commit 0d9d7d7.
1 parent 0d9d7d7 commit 3771f3a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

modules/01_prepare_bam.nf

+7-1
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,14 @@ process PREPARE_BAM {
3131
"""
3232
mkdir tmp
3333
34+
samtools sort \
35+
--threads ${params.prepare_bam_cpus} \
36+
-o ${name}.sorted.bam ${bam}
37+
3438
gatk AddOrReplaceReadGroups \
3539
--java-options '-Xmx${params.prepare_bam_memory} -Djava.io.tmpdir=./tmp' \
3640
--VALIDATION_STRINGENCY SILENT \
37-
--INPUT ${bam} \
41+
--INPUT ${name}.sorted.bam \
3842
--OUTPUT /dev/stdout \
3943
--REFERENCE_SEQUENCE ${reference} \
4044
--RGPU 1 \
@@ -52,6 +56,8 @@ process PREPARE_BAM {
5256
--OUTPUT ${name}.prepared.bam \
5357
--SEQUENCE_DICTIONARY ${reference}
5458
59+
rm -f ${name}.sorted.bam
60+
5561
echo ${params.manifest} >> software_versions.${task.process}.txt
5662
gatk --version >> software_versions.${task.process}.txt
5763
"""

0 commit comments

Comments
 (0)