Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LBMC
Hub
hic
Commits
9fca40e5
Commit
9fca40e5
authored
4 years ago
by
nservant
Browse files
Options
Downloads
Patches
Plain Diff
[TEST] update test parameters
parent
7b259f18
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
conf/test.config
+1
-0
1 addition, 0 deletions
conf/test.config
main.nf
+21
-9
21 additions, 9 deletions
main.nf
nextflow.config
+3
-1
3 additions, 1 deletion
nextflow.config
with
25 additions
and
10 deletions
conf/test.config
+
1
−
0
View file @
9fca40e5
...
@@ -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'
}
}
This diff is collapsed.
Click to expand it.
main.nf
+
21
−
9
View file @
9fca40e5
...
@@ -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}
...
...
This diff is collapsed.
Click to expand it.
nextflow.config
+
3
−
1
View file @
9fca40e5
...
@@ -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
=
'
5
000'
res_
compartments
=
'
250
000'
//
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment