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

style: use parameters for filter closure

This commit is contained in:
Moritz E. Beber 2023-03-07 12:38:50 +01:00
parent aa2410a871
commit b90433f3c2

View file

@ -41,9 +41,7 @@ workflow DB_CHECK {
// 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
.filter {
params["run_${it[0]['tool']}"]
}
.filter { db_meta, db -> params["run_${db_meta.tool}"] }
UNTAR (ch_input_untar)
ch_versions = ch_versions.mix(UNTAR.out.versions.first())