Skip to content

Commit e5a4ffb

Browse files
authored
Merge pull request #663 from FriederikeHanssen/ascat_controlfreec_ploidy
separate ascat and controlfreec ploidy
2 parents e029519 + ea17f5d commit e5a4ffb

File tree

4 files changed

+25
-16
lines changed

4 files changed

+25
-16
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
100100
- [#651](https://github.com/nf-core/sarek/pull/651) - Added TIDDIT_SOMATIC subworkflow
101101
- [#653](https://github.com/nf-core/sarek/pull/653) - Coherent results subfolder structure between preprocessing, variantcalling and reporting
102102
- [#659](https://github.com/nf-core/sarek/pull/659) - Update usage.md docu section on `How to run ASCAT with WES`
103+
- [#663](https://github.com/nf-core/sarek/pull/663) - Add separate parameters for `ASCAT` and `ControlFREEC` back in
103104

104105
### Fixed
105106

conf/modules.config

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ process{
794794
forcegccontentnormalization: params.wes ? "1" : "0",
795795
minimalsubclonepresence: params.wes ? "30" : "20",
796796
noisydata: params.wes ? "TRUE" : "FALSE",
797-
ploidy: params.ploidy,
797+
ploidy: params.cf_ploidy,
798798
printNA: params.wes ? "FALSE" : "TRUE",
799799
readcountthreshold: params.wes ? "50" : "10",
800800
sex: meta.sex,
@@ -811,7 +811,7 @@ process{
811811
}
812812

813813
withName: 'FREEC2BED' {
814-
ext.args = { "${params.ploidy}" }
814+
ext.args = { "${params.cf_ploidy}" }
815815
publishDir = [
816816
mode: params.publish_dir_mode,
817817
path: { "${params.outdir}/variant_calling/controlfreec/${meta.id}/" },
@@ -820,7 +820,7 @@ process{
820820
}
821821

822822
withName: 'FREEC2CIRCOS' {
823-
ext.args = { "${params.ploidy}" }
823+
ext.args = { "${params.cf_ploidy}" }
824824
publishDir = [
825825
mode: params.publish_dir_mode,
826826
path: { "${params.outdir}/variant_calling/controlfreec/${meta.id}/" },
@@ -829,7 +829,7 @@ process{
829829
}
830830

831831
withName: 'MAKEGRAPH' {
832-
ext.args = { "${params.ploidy}" }
832+
ext.args = { "${params.cf_ploidy}" }
833833
publishDir = [
834834
mode: params.publish_dir_mode,
835835
path: { "${params.outdir}/variant_calling/controlfreec/${meta.id}/" },
@@ -958,7 +958,7 @@ process{
958958
"gender": meta.sex,
959959
"genomeVersion": params.ascat_genome,
960960
"purity": params.ascat_purity,
961-
"ploidy": params.ploidy,
961+
"ploidy": params.ascat_ploidy,
962962
"minCounts": params.ascat_min_counts,
963963
"chrom_names": meta.sex == 'XX' ? "c(1:22, 'X')" : "c(1:22, 'X', 'Y')",
964964
"min_base_qual": params.ascat_min_base_qual,
@@ -1028,7 +1028,7 @@ process{
10281028
forcegccontentnormalization: params.wes ? "1" : "0",
10291029
minimalsubclonepresence: params.wes ? "30" : "20",
10301030
noisydata: params.wes ? "TRUE" : "FALSE",
1031-
ploidy: params.ploidy,
1031+
ploidy: params.cf_ploidy,
10321032
printNA: params.wes ? "FALSE" : "TRUE",
10331033
readcountthreshold: params.wes ? "50" : "10",
10341034
sex: meta.sex,

nextflow.config

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,12 @@ params {
5050

5151
// Variant Calling
5252
only_paired_variant_calling = false //if true, skips germline variant calling for normal-paired samples
53-
ploidy = 2 //null (in ascat, test this works) // Use default value, you can use 2,3,4
53+
ascat_ploidy = null // default value for ASCAT
5454
ascat_min_base_qual = 20 // default value for ASCAT
5555
ascat_min_counts = 10 // default value for ASCAT
5656
ascat_min_map_qual = 35 // default value for ASCAT
57-
ascat_purity = null // Use default value
57+
ascat_purity = null // default value for ASCAT
58+
cf_ploidy = 2 // default value for Control-FREEC
5859
cf_coeff = 0.05 // default value for Control-FREEC
5960
cf_contamination = 0 // default value for Control-FREEC
6061
cf_contamination_adjustment = false // by default we are not using this in Control-FREEC

nextflow_schema.json

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -232,14 +232,6 @@
232232
"description": "If true, skips germline variant calling for matched normal to tumor sample. Normal samples without matched tumor will still be processed through germline variant calling tools.",
233233
"help_text": "This can speed up computation for somatic variant calling with matched normal samples. If false, all normal samples are processed as well through the germline variantcalling tools. If true, only somatic variant calling is done."
234234
},
235-
"ploidy": {
236-
"type": "number",
237-
"fa_icon": "fas fa-bacon",
238-
"default": 2,
239-
"description": "Genome ploidy used by ASCAT and ControlFREEC",
240-
"hidden": true,
241-
"help_text": "ControLFREEC: In case of doubt, you can set different values and Control-FREEC will select the one that explains most observed CNAs\n Example: ploidy=2 , ploidy=2,3,4\n\nASCAT: optional argument to override ASCAT optimization and supply psi parameter\n(expert parameter, don\u2019t adapt unless you know what you\u2019re doing). See [here](https://raw.githubusercontent.com/VanLoo-lab/ascat/master/man/ASCAT-manual.pdf)"
242-
},
243235
"ascat_min_base_qual": {
244236
"type": "number",
245237
"default": 20,
@@ -264,6 +256,13 @@
264256
"hidden": true,
265257
"help_text": "For more details, see [here](https://raw.githubusercontent.com/VanLoo-lab/ascat/master/man/ASCAT-manual.pdf)."
266258
},
259+
"ascat_ploidy": {
260+
"type": "string",
261+
"default": null,
262+
"fa_icon": "fas fa-bacon",
263+
"help_text": "ASCAT: optional argument to override ASCAT optimization and supply psi parameter (expert parameter, don\u2019t adapt unless you know what you\u2019re doing). See [here](https://raw.githubusercontent.com/VanLoo-lab/ascat/master/man/ASCAT-manual.pdf)",
264+
"hidden": true
265+
},
267266
"ascat_purity": {
268267
"type": "number",
269268
"fa_icon": "fas fa-broom",
@@ -310,6 +309,14 @@
310309
"description": "Minimal read coverage for a position to be considered in BAF analysis.",
311310
"help_text": "Details, see [ControlFREEC manual](http://boevalab.inf.ethz.ch/FREEC/tutorial.html)."
312311
},
312+
"cf_ploidy": {
313+
"type": "integer",
314+
"default": 2,
315+
"fa_icon": "fas fa-bacon",
316+
"help_text": "In case of doubt, you can set different values and Control-FREEC will select the one that explains most observed CNAs Example: ploidy=2 , ploidy=2,3,4. For more details, see the [manual](http://boevalab.inf.ethz.ch/FREEC/tutorial.html).",
317+
"description": "Genome ploidy used by ControlFREEC",
318+
"hidden": true
319+
},
313320
"cf_window": {
314321
"type": "number",
315322
"fa_icon": "fas fa-window-maximize",

0 commit comments

Comments
 (0)