From 0c461dac641e70c8b197340ea48a8a6629709b14 Mon Sep 17 00:00:00 2001
From: Laurent Modolo <laurent.modolo@ens-lyon.fr>
Date: Mon, 5 Jul 2021 11:06:05 +0200
Subject: [PATCH] kb: fix cardinality for split() step

---
 src/nf_modules/kb/main.nf | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/nf_modules/kb/main.nf b/src/nf_modules/kb/main.nf
index 3668b7b3..a6cbfa75 100644
--- a/src/nf_modules/kb/main.nf
+++ b/src/nf_modules/kb/main.nf
@@ -88,7 +88,7 @@ workflow count {
     .set{ whitelist_optional }
   switch(params.kb_protocol) {
     case "marsseq":
-      split(fastq, config)
+      split(fastq, config.collect())
       kb_marseq(index.collect(), split.out.fastq, transcript_to_gene.collect(), whitelist_optional.collect())
       kb_marseq.out.counts.set{res_counts}
       kb_marseq.out.report.set{res_report}
@@ -280,7 +280,7 @@ workflow count_velocity {
     .set{ whitelist_optional }
   switch(params.kb_protocol) {
     case "marsseq":
-      split(fastq, config)
+      split(fastq, config.collect())
       velocity_marseq(index.collect(), split.out.fastq, transcript_to_gene.collect(), whitelist_optional.collect())
       velocity_marseq.out.counts.set{res_counts}
       velocity_marseq.out.report.set{res_report}
-- 
GitLab