From d56e3133f9b716030971741653b038118baadaca Mon Sep 17 00:00:00 2001 From: "James A. Fellows Yates" Date: Tue, 24 Jan 2023 10:45:01 +0100 Subject: [PATCH] Allow databases of all tools to arrive as tar.gz --- subworkflows/local/db_check.nf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subworkflows/local/db_check.nf b/subworkflows/local/db_check.nf index a89b519..203ee4e 100644 --- a/subworkflows/local/db_check.nf +++ b/subworkflows/local/db_check.nf @@ -41,7 +41,7 @@ workflow DB_CHECK { //Filter the channel to run untar on DBs of tools actually using ch_input_untar = ch_dbs_for_untar.untar.dump() - .filter { params.run_kraken2 && it[0]['tool'] == 'kraken2' || params.run_centrifuge && it[0]['tool'] == 'centrifuge' || params.run_bracken && it[0]['tool'] == 'bracken' || params.run_kaiju && it[0]['tool'] == 'kaiju' || params.run_krakenuniq && it [0]['tool'] == 'krakenuniq' || params.run_malt && it[0]['tool'] == 'malt' || params.run_metaphlan3 && it[0]['tool'] == 'metaphlan3' } + .filter { params.run_bracken && it[0]['tool'] == 'bracken' || params.run_centrifuge && it[0]['tool'] == 'centrifuge' || || params.run_diamond && it[0]['tool'] == 'diamond' || params.run_kaiju && it[0]['tool'] == 'kaiju' || params.run_kraken2 && it[0]['tool'] == 'kraken2' || params.run_krakenuniq && it [0]['tool'] == 'krakenuniq' || params.run_malt && it[0]['tool'] == 'malt' || params.run_metaphlan3 && it[0]['tool'] == 'metaphlan3' || params.run_motus && it[0]['tool'] == 'motus' } UNTAR (ch_input_untar) ch_versions = ch_versions.mix(UNTAR.out.versions.first()) ch_final_dbs = ch_dbs_for_untar.skip.mix( UNTAR.out.untar )