Skip to content
Snippets Groups Projects
Commit f2163ed2 authored by Roberto Rossini's avatar Roberto Rossini
Browse files

Fix incorrect handling of --restriction_site and --ligation_site params

Fixes https://github.com/nf-core/hic/issues/150
parent b4d89cfa
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,9 @@ if (params.digestion){
ch_restriction_site = Channel.value(restriction_site)
ligation_site = params.digestion ? params.digest[ params.digestion ].ligation_site ?: false : false
ch_ligation_site = Channel.value(ligation_site)
}else if (params.restriction_site && params.ligation_site){
ch_restriction_site = Channel.value(params.restriction_site)
ch_ligation_site = Channel.value(params.ligation_site)
}else if (params.dnase){
ch_restriction_site = Channel.empty()
ch_ligation_site = Channel.empty()
......
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