From b90433f3c24bb6e59e5d98e8e4681869fd203a31 Mon Sep 17 00:00:00 2001 From: "Moritz E. Beber" Date: Tue, 7 Mar 2023 12:38:50 +0100 Subject: [PATCH] style: use parameters for filter closure --- subworkflows/local/db_check.nf | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/subworkflows/local/db_check.nf b/subworkflows/local/db_check.nf index 76a9e1e..70e1e02 100644 --- a/subworkflows/local/db_check.nf +++ b/subworkflows/local/db_check.nf @@ -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())