From 317649bddcd50eee985bbcfff1ca53c74fdb0aec Mon Sep 17 00:00:00 2001 From: Laurent Modolo <laurent.modolo@ens-lyon.fr> Date: Tue, 5 Dec 2023 16:39:02 +0100 Subject: [PATCH] main.nf: merge sample by sample and r1 r2 --- src/main.nf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.nf b/src/main.nf index 2c60025..e65bd25 100644 --- a/src/main.nf +++ b/src/main.nf @@ -31,7 +31,7 @@ workflow { SUBSAMPLE_READ(fastq.r1.mix(fastq.r2)) SPLIT(SUBSAMPLE_READ.out.fastq) FASTKMERS(SPLIT.out.fastq.transpose()) - MERGEKMER(FASTKMERS.out.csv.groupTuple()) + MERGEKMER(FASTKMERS.out.csv.map{it -> [[it[0][0], it[0][1], it[0][2]], it[1]]}.groupTuple()) COLLATEKMER(MERGEKMER.out.csv.map{it -> [it[0].specie, it[1]] }.groupTuple()) KMERCLUST_LOAD(COLLATEKMER.out.csv, params_csv.collect()) KMERCLUST_BOOT(Channel.of(1..params.bootstrap).combine(KMERCLUST_LOAD.out.rdata)) -- GitLab