-
Notifications
You must be signed in to change notification settings - Fork 421
/
Copy pathcontrolfreec.config
131 lines (122 loc) · 5.28 KB
/
controlfreec.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Config file for defining DSL2 per module options and publishing paths
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Available keys to override module options:
ext.args = Additional arguments appended to command in module.
ext.args2 = Second set of arguments appended to command in module (multi-tool modules).
ext.args3 = Third set of arguments appended to command in module (multi-tool modules).
ext.prefix = File name prefix for output files.
ext.when = When to run the module.
----------------------------------------------------------------------------------------
*/
// CONTROLFREEC
process {
withName: 'ASSESS_SIGNIFICANCE' {
publishDir = [
mode: params.publish_dir_mode,
path: { "${params.outdir}/variant_calling/controlfreec/${meta.id}/" },
pattern: "*{.p.value.txt}"
]
}
withName: 'FREEC_.*' {
ext.when = { params.tools && params.tools.split(',').contains('controlfreec') }
publishDir = [
mode: params.publish_dir_mode,
path: { "${params.outdir}/variant_calling/controlfreec/${meta.id}/" },
pattern: "*{BedGraph,cpn,txt,_CNVs}"
]
}
withName: 'FREEC2BED' {
ext.args = { "${params.cf_ploidy}" }
publishDir = [
mode: params.publish_dir_mode,
path: { "${params.outdir}/variant_calling/controlfreec/${meta.id}/" },
pattern: "*bed"
]
}
withName: 'FREEC2CIRCOS' {
ext.args = { "${params.cf_ploidy}" }
publishDir = [
mode: params.publish_dir_mode,
path: { "${params.outdir}/variant_calling/controlfreec/${meta.id}/" },
pattern: "*circos.txt"
]
}
withName: 'MAKEGRAPH' {
ext.args = { "${params.cf_ploidy}" }
publishDir = [
mode: params.publish_dir_mode,
path: { "${params.outdir}/variant_calling/controlfreec/${meta.id}/" },
pattern: "*png"
]
}
// TUMOR_ONLY_VARIANT_CALLING
withName: 'FREEC_TUMORONLY' {
ext.args = {[
"sample":[
inputformat: 'pileup',
mateorientation: 'FR'
],
"general" :[
bedgraphoutput: "TRUE",
breakpointthreshold: params.wes ? "1.2" : "0.8", //Values taken from Freec example configs
breakpointtype: params.wes ? "4" : "2", // Values taken from Freec example configs
coefficientofvariation: params.cf_coeff,
contamination: params.cf_contamination ?: "",
contaminationadjustment: params.cf_contamination_adjustment ? "TRUE" : "",
forcegccontentnormalization: params.wes ? "1" : "0",
minimalsubclonepresence: params.wes ? "30" : "20",
noisydata: params.wes ? "TRUE" : "FALSE",
ploidy: params.cf_ploidy,
printNA: params.wes ? "FALSE" : "TRUE",
readcountthreshold: params.wes ? "50" : "10",
sex: meta.sex,
//uniquematch: not set
window: params.cf_window ?: ""
],
"BAF":[
minimalcoverageperposition: params.cf_mincov ?: "",
minimalqualityperposition: params.cf_minqual ?: "",
//"shiftinquality": (optional)not set
]
]
}
}
// PAIR_VARIANT_CALLING
withName: 'FREEC_SOMATIC' {
ext.args = {[
"sample":[
inputformat: 'pileup',
mateorientation: 'FR'
],
"control":[
inputformat: "pileup",
mateorientation: "FR"
],
"general" :[
bedgraphoutput: "TRUE",
breakpointthreshold: params.wes ? "1.2" : "0.8", //Values taken from Freec example configs
breakpointtype: params.wes ? "4" : "2", // Values taken from Freec example configs
coefficientofvariation: params.cf_coeff,
contamination: params.cf_contamination ?: "",
contaminationadjustment: params.cf_contamination_adjustment ? "TRUE" : "",
forcegccontentnormalization: params.wes ? "1" : "0",
minimalsubclonepresence: params.wes ? "30" : "20",
noisydata: params.wes ? "TRUE" : "FALSE",
ploidy: params.cf_ploidy,
printNA: params.wes ? "FALSE" : "TRUE",
readcountthreshold: params.wes ? "50" : "10",
sex: meta.sex,
//uniquematch: not set
window: params.cf_window ?: ""
],
"BAF":[
minimalcoverageperposition: params.cf_mincov ?: "",
minimalqualityperposition: params.cf_minqual ?: "",
//"shiftinquality": (optional)not set
]
]
}
}
}