From 5af4545059fc00c9cac09822b2d308b4240e6efb Mon Sep 17 00:00:00 2001 From: d4straub Date: Fri, 20 Dec 2024 16:08:56 +0100 Subject: [PATCH] omitting QIMME2 tree when QIIME2 isnt executed --- workflows/ampliseq.nf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflows/ampliseq.nf b/workflows/ampliseq.nf index e7014263..4f4c2483 100644 --- a/workflows/ampliseq.nf +++ b/workflows/ampliseq.nf @@ -873,7 +873,7 @@ workflow AMPLISEQ { ch_tree_for_robject = FASTA_NEWICK_EPANG_GAPPA.out.grafted_phylogeny.map { it = it[1] }.first() } else if (params.multiregion) { ch_tree_for_robject = SIDLE_WF.out.tree_nwk - } else if ( params.metadata && (!params.skip_alpha_rarefaction || !params.skip_diversity_indices) ) { + } else if ( run_qiime2 && params.metadata && (!params.skip_alpha_rarefaction || !params.skip_diversity_indices) ) { ch_tree_for_robject = QIIME2_DIVERSITY.out.tree_nwk } else { ch_tree_for_robject = []