From ae1ecc63ff2c9c32a0e6965a33c57befa6ce0113 Mon Sep 17 00:00:00 2001 From: Emilio Palumbo Date: Tue, 16 May 2023 15:23:32 +0200 Subject: [PATCH] Update cross key to get bamFilesToTranscriptome and bamStatsFiles - fixes #72 --- grape-pipeline.nf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grape-pipeline.nf b/grape-pipeline.nf index 2ad6193..7f49be7 100755 --- a/grape-pipeline.nf +++ b/grape-pipeline.nf @@ -624,7 +624,7 @@ inferExpOutput.into { bamFilesToGenome } -bamFilesToTranscriptome.cross(bamFilesCrossTranscriptome).map { transcriptome, genome -> +bamFilesToTranscriptome.cross(bamFilesCrossTranscriptome, { it[1] + it[0] }).map { transcriptome, genome -> transcriptome[0..-2] + genome[-2..-1] }.into { bamFilesToTranscriptome @@ -665,7 +665,7 @@ process bamStats { template(command) } -bamStatsOutput.cross(bamFilesCrossBamStats).map { stats, genome -> +bamStatsOutput.cross(bamFilesCrossBamStats, { it[1] + it[0] }).map { stats, genome -> stats + genome[-1] }.set { bamStatsFiles