Skip to content
Snippets Groups Projects
Commit 9fca40e5 authored by nservant's avatar nservant
Browse files

[TEST] update test parameters

parent 7b259f18
No related branches found
No related tags found
No related merge requests found
...@@ -34,4 +34,5 @@ params { ...@@ -34,4 +34,5 @@ params {
res_dist_decay = '1000' res_dist_decay = '1000'
res_tads = '1000' res_tads = '1000'
tads_caller = 'insulation,hicexplorer' tads_caller = 'insulation,hicexplorer'
res_compartments = '1000'
} }
...@@ -277,9 +277,23 @@ if (params.res_dist_decay && !params.skip_dist_decay){ ...@@ -277,9 +277,23 @@ if (params.res_dist_decay && !params.skip_dist_decay){
} }
} }
if (params.res_compartments && !params.skip_compartments){
Channel.from( "${params.res_compartments}" )
.splitCsv()
.flatten()
.into {comp_bin; comp_res}
map_res = map_res.concat(comp_bin)
all_res = all_res + ',' + params.res_compartments
}else{
comp_res = Channel.create()
if (!params.skip_compartments){
log.warn "[nf-core/hic] Hi-C resolution for compartment calling not specified. See --res_compartments"
}
}
map_res map_res
.unique() .unique()
.into { map_res_summary; map_res; map_res_cool } .into { map_res_summary; map_res; map_res_cool; map_comp }
/********************************************************** /**********************************************************
* SET UP LOGS * SET UP LOGS
...@@ -1020,9 +1034,8 @@ process dist_decay { ...@@ -1020,9 +1034,8 @@ process dist_decay {
* Compartment calling * Compartment calling
*/ */
/*
if(!params.skip_compartments){ if(!params.skip_compartments){
chcomp = maps_cool_comp.combine(comp_res).filter{ it[1] == it[4] }.dump(tag: "comp") chcomp = maps_cool_comp.combine(comp_res).filter{ it[1] == it[3] }.dump(tag: "comp")
}else{ }else{
chcomp = Channel.empty() chcomp = Channel.empty()
} }
...@@ -1036,17 +1049,16 @@ process compartment_calling { ...@@ -1036,17 +1049,16 @@ process compartment_calling {
!params.skip_compartments !params.skip_compartments
input: input:
set val(sample), val(res), file(mat), file(bed), val(r) from chcomp set val(sample), val(res), file(cool), val(r) from chcomp
output: output:
file("*.bedgraph") optional true into out_compartments file("*compartments*") optional true into out_compartments
script: script:
""" """
call_compartments.r --matrix ${mat} --bed ${bed} cooltools call-compartments --contact-type cis -o ${sample}_compartments ${cool}
""" """
} }
*/
/* /*
...@@ -1068,14 +1080,14 @@ process tads_hicexplorer { ...@@ -1068,14 +1080,14 @@ process tads_hicexplorer {
!params.skip_tads && params.tads_caller =~ 'hicexplorer' !params.skip_tads && params.tads_caller =~ 'hicexplorer'
input: input:
set val(sample), val(res), file(h5mat), val(r) from chtads set val(sample), val(res), file(cool), val(r) from chtads
output: output:
file("*.{bed,bedgraph,gff}") into hicexplorer_tads file("*.{bed,bedgraph,gff}") into hicexplorer_tads
script: script:
""" """
hicFindTADs --matrix ${h5mat} \ hicFindTADs --matrix ${cool} \
--outPrefix tad \ --outPrefix tad \
--correctForMultipleTesting fdr \ --correctForMultipleTesting fdr \
--numberOfProcessors ${task.cpus} --numberOfProcessors ${task.cpus}
......
...@@ -60,6 +60,7 @@ params { ...@@ -60,6 +60,7 @@ params {
// Contact maps // Contact maps
bin_size = '1000000' bin_size = '1000000'
res_zoomify = '5000'
ice_max_iter = 100 ice_max_iter = 100
ice_filer_low_count_perc = 0.02 ice_filer_low_count_perc = 0.02
ice_filer_high_count_perc = 0 ice_filer_high_count_perc = 0
...@@ -69,7 +70,7 @@ params { ...@@ -69,7 +70,7 @@ params {
res_dist_decay = '250000' res_dist_decay = '250000'
tads_caller = 'insulation' tads_caller = 'insulation'
res_tads = '40000' res_tads = '40000'
res_zoomify = '5000' res_compartments = '250000'
// Workflow // Workflow
skip_maps = false skip_maps = false
...@@ -77,6 +78,7 @@ params { ...@@ -77,6 +78,7 @@ params {
skip_balancing = false skip_balancing = false
skip_mcool = false skip_mcool = false
skip_dist_decay = false skip_dist_decay = false
skip_compartments = false
skip_tads = false skip_tads = false
skip_multiqc = false skip_multiqc = false
......
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