Skip to content

Commit ffa0fd2

Browse files
authored
Merge pull request #2 from TRON-Bioinformatics/fix-issue-read-groups
Fix issue read groups
2 parents ce10fdb + 6544b43 commit ffa0fd2

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

modules/01_prepare_bam.nf

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,27 +30,26 @@ process PREPARE_BAM {
3030
"""
3131
mkdir tmp
3232
33-
gatk CleanSam \
34-
--java-options '-Xmx${params.prepare_bam_memory} -Djava.io.tmpdir=tmp' \
35-
--INPUT ${bam} \
36-
--OUTPUT /dev/stdout | \
37-
gatk ReorderSam \
38-
--java-options '-Xmx${params.prepare_bam_memory} -Djava.io.tmpdir=tmp' \
39-
--INPUT /dev/stdin \
40-
--OUTPUT /dev/stdout \
41-
--SEQUENCE_DICTIONARY ${params.reference} | \
4233
gatk AddOrReplaceReadGroups \
4334
--java-options '-Xmx${params.prepare_bam_memory} -Djava.io.tmpdir=tmp' \
4435
--VALIDATION_STRINGENCY SILENT \
45-
--INPUT /dev/stdin \
46-
--OUTPUT ${name}.prepared.bam \
36+
--INPUT ${bam} \
37+
--OUTPUT /dev/stdout \
4738
--REFERENCE_SEQUENCE ${params.reference} \
4839
--RGPU 1 \
4940
--RGID 1 \
5041
--RGSM ${type} \
5142
--RGLB 1 \
52-
--RGPL ${params.platform} \
53-
${order}
43+
--RGPL ${params.platform} ${order} | \
44+
gatk CleanSam \
45+
--java-options '-Xmx${params.prepare_bam_memory} -Djava.io.tmpdir=tmp' \
46+
--INPUT /dev/stdin \
47+
--OUTPUT /dev/stdout | \
48+
gatk ReorderSam \
49+
--java-options '-Xmx${params.prepare_bam_memory} -Djava.io.tmpdir=tmp' \
50+
--INPUT /dev/stdin \
51+
--OUTPUT ${name}.prepared.bam \
52+
--SEQUENCE_DICTIONARY ${params.reference}
5453
"""
5554
}
5655

nextflow.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ process.shell = ['/bin/bash', '-euo', 'pipefail']
4646

4747
cleanup = true
4848

49-
VERSION = '1.7.0'
49+
VERSION = '1.7.1'
5050
DOI = 'https://zenodo.org/badge/latestdoi/358400957'
5151

5252
manifest {

0 commit comments

Comments
 (0)