Skip to content

Commit

Permalink
Merge pull request #28 from jemten/update_gens_args
Browse files Browse the repository at this point in the history
updates the default args for gens
  • Loading branch information
maxulysse authored Jun 11, 2024
2 parents 1aedf57 + d05b1fe commit 86b516b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Initial release of nf-core/createpanelrefs, created with the [nf-core](https://n
- [#19](https://github.com/nf-core/createpanelrefs/pull/19) - Updates germlinecnvcaller subworkflow to handle exome samples
- [#24](https://github.com/nf-core/createpanelrefs/pull/24) - Updates germlinecnvcaller subworkflow to use mappability and segmental duplications track
- [#24](https://github.com/nf-core/createpanelrefs/pull/24) - Updates germlinecnvcaller and gens subworkflows to use custom names for panel of normals.
- [#28](https://github.com/nf-core/createpanelrefs/pull/28) - Updates default args for gens subworkflow and made the parameters available from the command line.

### `Fixed`

Expand Down
4 changes: 2 additions & 2 deletions conf/modules/gens_pon.config
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ process {
}

withName: '.*GENS_PON:GATK4_CREATEREADCOUNTPANELOFNORMALS' {
ext.args = { ["--minimum-interval-median-percentile 10.0",
"--maximum-chunk-size 29349635"].join(" ")}
ext.args = { ["--minimum-interval-median-percentile ${params.gens_min_interval_median_percentile}",
"--maximum-chunk-size ${params.gens_maximum_chunk_size}"].join(" ")}
publishDir = [
mode: params.publish_dir_mode,
path: { "${params.outdir}/gens_pon/createreadcountpanelofnormals" },
Expand Down
8 changes: 5 additions & 3 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ params {
gcnv_scatter_content = 5000

// Gens options
gens_bin_length = 100
gens_pon_name = 'gens'
gens_readcount_format = 'HDF5'
gens_bin_length = 100
gens_maximum_chunk_size = 167772150
gens_min_interval_median_percentile = 5.0
gens_pon_name = 'gens'
gens_readcount_format = 'HDF5'

// CNVkit options
cnvkit_targets = null
Expand Down
11 changes: 11 additions & 0 deletions nextflow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,17 @@
"fa_icon": "fas fa-sort-numeric-down",
"help_text": "Used by GATK's PreprocessIntervals. We recommend a bin length of 100."
},
"gens_maximum_chunk_size": {
"type": "number",
"default": 167772150,
"description": "Maximum chunk size when writing the HDF5 file"
},
"gens_min_interval_median_percentile": {
"type": "number",
"default": 5,
"description": "Minimum interval median percentile for gatk CreateReadCountPanelOfNormals",
"help_text": "Genomic intervals with a median (across samples) of fractional coverage (optionally corrected for GC bias) less than or equal to this percentile are filtered out. (This is the first filter applied.)"
},
"gens_pon_name": {
"type": "string",
"description": "Name for panel of normals.",
Expand Down

0 comments on commit 86b516b

Please sign in to comment.