diff --git a/subworkflows/local/recombination.nf b/subworkflows/local/recombination.nf index 4a3e00e6..31290789 100644 --- a/subworkflows/local/recombination.nf +++ b/subworkflows/local/recombination.nf @@ -60,8 +60,8 @@ workflow RECOMBINATION { ) } - verticall_result = VERTICALL_PAIRWISE.out.tsv.ifEmpty([]) - gubbins_result = GUBBINS.out.stats.ifEmpty([]) + gubbins_result = params.run_gubbins ? GUBBINS.out.stats : [] + verticall_result = params.run_verticall ? VERTICALL_PAIRWISE.out.tsv : [] emit: verticall_result