Skip to content

Commit 967c248

Browse files
authored
Merge pull request #1157 from maxulysse/vep_custom_args
Move all vep args from ext.args to params.vep_custom_args
2 parents e02b573 + 76120fd commit 967c248

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1616
### Changed
1717

1818
- [#1151](https://github.com/nf-core/sarek/pull/1151) - Refactor codebase
19+
- [#1157](https://github.com/nf-core/sarek/pull/1157) - Move all vep args from `ext.args` to `params.vep_custom_args` to allow easier modifications
1920

2021
### Fixed
2122

conf/modules/annotate.config

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ process {
3636
if (params.tools && (params.tools.split(',').contains('vep') || params.tools.split(',').contains('merge'))) {
3737
withName: 'ENSEMBLVEP_VEP' {
3838
ext.args = { [
39-
'--everything --filter_common --per_gene --total_length --offline --format vcf',
4039
(params.vep_dbnsfp && params.dbnsfp && !params.dbnsfp_consequence) ? "--plugin dbNSFP,${params.dbnsfp.split("/")[-1]},${params.dbnsfp_fields}" : '',
4140
(params.vep_dbnsfp && params.dbnsfp && params.dbnsfp_consequence) ? "--plugin dbNSFP,'consequence=${params.dbnsfp_consequence}',${params.dbnsfp.split("/")[-1]},${params.dbnsfp_fields}" : '',
4241
(params.vep_loftee) ? "--plugin LoF,loftee_path:/opt/conda/envs/nf-core-vep-${params.vep_version}/share/ensembl-vep-${params.vep_version}-0" : '',

nextflow.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ params {
7373
sentieon_haplotyper_emit_mode = "variant" // default value for Sentieon haplotyper
7474

7575
// Annotation
76-
vep_out_format = 'vcf'
77-
vep_custom_args = null // No custom arguments for VEP
76+
vep_out_format = "vcf"
77+
vep_custom_args = "--everything --filter_common --per_gene --total_length --offline --format vcf" // Default arguments for VEP
7878
vep_dbnsfp = null // dbnsfp plugin disabled within VEP
7979
dbnsfp = null // No dbnsfp processed file
8080
dbnsfp_tbi = null // No dbnsfp processed file index

nextflow_schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,7 @@
487487
},
488488
"vep_custom_args": {
489489
"type": "string",
490+
"default": "--everything --filter_common --per_gene --total_length --offline --format vcf",
490491
"fa_icon": "fas fa-toolbox",
491492
"description": "Add an extra custom argument to VEP.",
492493
"hidden": true,

0 commit comments

Comments
 (0)