From dac911103e259ba9553eab71a6a321b6cb3ea56d Mon Sep 17 00:00:00 2001 From: Edmund Miller Date: Fri, 8 Nov 2024 16:13:11 -0600 Subject: [PATCH] test: flatten => toSortedList to make the order of beds consistant for snapshots --- subworkflows/local/transcript_identification/main.nf | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/subworkflows/local/transcript_identification/main.nf b/subworkflows/local/transcript_identification/main.nf index d7fb9f38..e363ba0d 100644 --- a/subworkflows/local/transcript_identification/main.nf +++ b/subworkflows/local/transcript_identification/main.nf @@ -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.