From 9b7e1961f77885c175bc8f9883cc5d380677bdfe Mon Sep 17 00:00:00 2001 From: Nicolas Servant <nicolas.servant@curie.fr> Date: Fri, 6 Jan 2023 18:22:59 +0100 Subject: [PATCH] Update hic.nf inline channel build as suggested by @maxulysse --- workflows/hic.nf | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/workflows/hic.nf b/workflows/hic.nf index 834afc0..faa6a59 100644 --- a/workflows/hic.nf +++ b/workflows/hic.nf @@ -56,12 +56,8 @@ if (params.res_tads && !params.skip_tads){ } if (params.res_dist_decay && !params.skip_dist_decay){ - Channel.from( "${params.res_dist_decay}" ) - .splitCsv() - .flatten() - .toInteger() - .set {ch_ddecay_res} - ch_map_res = ch_map_res.concat(ch_ddecay_res) + ch_ddecay_res = Channel.from( "${params.res_dist_decay}" ).splitCsv().flatten().toInteger() + ch_map_res = ch_map_res.concat(ch_ddecay_res) }else{ ch_ddecay_res = Channel.empty() if (!params.skip_dist_decay){ @@ -70,12 +66,8 @@ if (params.res_dist_decay && !params.skip_dist_decay){ } if (params.res_compartments && !params.skip_compartments){ - Channel.from( "${params.res_compartments}" ) - .splitCsv() - .flatten() - .toInteger() - .set {ch_comp_res} - ch_map_res = ch_map_res.concat(ch_comp_res) + ch_comp_res = Channel.from( "${params.res_compartments}" ).splitCsv().flatten().toInteger() + ch_map_res = ch_map_res.concat(ch_comp_res) }else{ ch_comp_res = Channel.empty() if (!params.skip_compartments){ -- GitLab