Skip to content

Commit

Permalink
Merge pull request #1112 from jch-13/dsl2-sharding-tweaks
Browse files Browse the repository at this point in the history
DSL2: Sharding Tweaks
  • Loading branch information
TCLamnidis authored Feb 7, 2025
2 parents 3c2dab0 + 2c95279 commit e5beb93
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions subworkflows/local/map.nf
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ workflow MAP {

// Only run merge lanes if we have more than one BAM to merge!
ch_input_for_lane_merge = ch_mapped_lane_bam
.toSortedList {
a, b ->
a[0]['lane'] <=> b[0]['lane'] ?: a[0]['colour_chemistry'] <=> b[0]['colour_chemistry'] ?: a[0]['shard_number'] <=> b[0]['shard_number']
}
.flatMap()
.map {
meta, bam ->
new_meta = meta.clone().findAll{ it.key !in ['lane', 'colour_chemistry', 'shard_number'] }
Expand Down

0 comments on commit e5beb93

Please sign in to comment.