Skip to content

Commit 490b687

Browse files
Story BenjaminStory Benjamin
authored andcommitted
fix: sort BAM/BAI inputs to Manta for deterministic sample order
1 parent 37e1f7c commit 490b687

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5959

6060
### `Fixed`
6161

62+
- Ensure deterministic sample ordering in Manta SV output by sorting BAM/BAI channel inputs [#815](https://github.com/nf-core/raredisease/pull/815)
6263
- Fixed inconsistencies in JSON schema [#714](https://github.com/nf-core/raredisease/pull/714)
6364
- Fixed conda declaration in the add_varcallername_to_bed module [#733](https://github.com/nf-core/raredisease/pull/733)
6465
- Fixed CADD annotation to support chr prefix [#745](https://github.com/nf-core/raredisease/pull/745)

subworkflows/local/call_sv_manta/main.nf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@ workflow CALL_SV_MANTA {
1616
val_analysis_type // string: "wes", "wgs", or "mito"
1717

1818
main:
19-
ch_bam.collect{_meta, bam -> bam}
19+
ch_bam.map{ _meta, bam -> bam }
20+
.collect(sort: { a, b -> a.getName() <=> b.getName() })
2021
.toList()
2122
.set { bam_file_list }
2223

23-
ch_bai.collect{_meta, bai -> bai}
24+
ch_bai.map{ _meta, bai -> bai }
25+
.collect(sort: { a, b -> a.getName() <=> b.getName() })
2426
.toList()
2527
.set { bai_file_list }
2628

0 commit comments

Comments
 (0)