1
0
Fork 0
mirror of https://github.com/MillironX/taxprofiler.git synced 2024-11-10 23:53:10 +00:00

Try Moritz's trick, assuming validate_db_rows already checks for tool name validity

This commit is contained in:
James A. Fellows Yates 2023-01-24 12:43:34 +01:00 committed by GitHub
parent 4df3409f4a
commit 6eafcc6499
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,18 +39,10 @@ workflow DB_CHECK {
skip: true
}
//Filter the channel to run untar on DBs of tools actually using
// Filter the channel to untar only those databases for tools that are selected to be run by the user.
ch_input_untar = ch_dbs_for_untar.untar.dump()
.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'
.filter {
params["run_${it[0]['tool']}"]
}
UNTAR (ch_input_untar)
ch_versions = ch_versions.mix(UNTAR.out.versions.first())