Skip to content
Snippets Groups Projects
Unverified Commit 9b7e1961 authored by Nicolas Servant's avatar Nicolas Servant Committed by GitHub
Browse files

Update hic.nf

inline channel build as suggested by @maxulysse
parent 262c90a4
No related branches found
No related tags found
No related merge requests found
......@@ -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){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment