Skip to content

Commit

Permalink
test: flatten => toSortedList to make the order of beds consistant fo…
Browse files Browse the repository at this point in the history
…r snapshots
  • Loading branch information
edmundmiller committed Nov 8, 2024
1 parent 8c5c2f8 commit dac9111
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions subworkflows/local/transcript_identification/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,10 @@ workflow TRANSCRIPT_INDENTIFICATION {
// TODO Tests don't seem to hit this because there's no bidirectional_TREs
// Need to collect all of the beds for each chromosome/sample and concatenate them
// Nextflow makes this super easy
def ch_bidirectional_TREs = PINTS_CALLER.out.unidirectional_TREs
.groupTuple(by: [0])
.map { meta, beds -> [meta, beds.flatten()] }
def ch_bidirectional_TREs =
PINTS_CALLER.out.unidirectional_TREs.groupTuple(by: [0]).map { meta, beds ->
[meta, beds.toSortedList()]
}

// HACK Not sure if this is as good as reporting all of them, but it should
// reduce the overall noise.
Expand Down

0 comments on commit dac9111

Please sign in to comment.