Skip to content
This repository was archived by the owner on Jan 27, 2020. It is now read-only.

Commit 4ea9a43

Browse files
author
Szilveszter Juhos
authored
Merge pull request #665 from MaxUlysse/consistency
input bam file has always the same name
2 parents 35046b0 + d3889c3 commit 4ea9a43

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1111

1212
- [#663](https://github.com/SciLifeLab/Sarek/pull/663) - Update `do_release.sh` script
1313

14+
### `Fixed`
15+
16+
- [#665](https://github.com/SciLifeLab/Sarek/pull/665) - Input bam file now has always the same name (whether it is from a single fastq pair or multiple) in the MarkDuplicates process, so metrics too
17+
1418
## [2.2.1] - 2018-10-04
1519

1620
### `Changed`

main.nf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,12 +233,12 @@ process MarkDuplicates {
233233
}
234234

235235
input:
236-
set idPatient, status, idSample, file(bam) from mergedBam
236+
set idPatient, status, idSample, file("${idSample}.bam") from mergedBam
237237

238238
output:
239239
set idPatient, file("${idSample}_${status}.md.bam"), file("${idSample}_${status}.md.bai") into duplicateMarkedBams
240240
set idPatient, status, idSample, val("${idSample}_${status}.md.bam"), val("${idSample}_${status}.md.bai") into markDuplicatesTSV
241-
file ("${bam}.metrics") into markDuplicatesReport
241+
file ("${idSample}.bam.metrics") into markDuplicatesReport
242242

243243
when: step == 'mapping' && !params.onlyQC
244244

@@ -247,8 +247,8 @@ process MarkDuplicates {
247247
gatk --java-options -Xmx${task.memory.toGiga()}g \
248248
MarkDuplicates \
249249
--MAX_RECORDS_IN_RAM 50000 \
250-
--INPUT ${bam} \
251-
--METRICS_FILE ${bam}.metrics \
250+
--INPUT ${idSample}.bam \
251+
--METRICS_FILE ${idSample}.bam.metrics \
252252
--TMP_DIR . \
253253
--ASSUME_SORT_ORDER coordinate \
254254
--CREATE_INDEX true \

0 commit comments

Comments
 (0)