From 98dba2a0f01629683759923f839a91af1d0781c0 Mon Sep 17 00:00:00 2001 From: LouisLeNezet Date: Wed, 6 Nov 2024 13:40:18 +0100 Subject: [PATCH] Fix numbering batch --- workflows/phaseimpute/main.nf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflows/phaseimpute/main.nf b/workflows/phaseimpute/main.nf index 486846da..55fd4805 100644 --- a/workflows/phaseimpute/main.nf +++ b/workflows/phaseimpute/main.nf @@ -230,7 +230,7 @@ workflow PHASEIMPUTE { .map{ error "Input files must be either BAM/CRAM or VCF/BCF" } // Group BAMs by batch size - def nb_batch = 0 + def nb_batch = -1 ch_input_bams = ch_input_type.bam .toSortedList { it1, it2 -> it1[0]["id"] <=> it2[0]["id"] } .map { list -> list.collate(params.batch_size)