diff --git a/CHANGELOG.md b/CHANGELOG.md index 5903e3cdc8..6007bc48c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - [#1278](https://github.com/nf-core/sarek/pull/1278) - Hide sentieon parameters similar to other variant callers - [#1280](https://github.com/nf-core/sarek/pull/1280) - Replacing link to `SentieonDNAscopeModel1.1.model` in Sentieon's S3 with link to same file in igenomes' S3 +- [#1303](https://github.com/nf-core/sarek/pull/1303) - Ressurect vep_version params and changed its scope to pipeline to enable usage for vep loftee plugin ### Fixed diff --git a/conf/modules/annotate.config b/conf/modules/annotate.config index 169acf7ec1..7356645add 100644 --- a/conf/modules/annotate.config +++ b/conf/modules/annotate.config @@ -37,7 +37,7 @@ process { ext.args = { [ (params.vep_dbnsfp && params.dbnsfp && !params.dbnsfp_consequence) ? "--plugin dbNSFP,${params.dbnsfp.split("/")[-1]},${params.dbnsfp_fields}" : '', (params.vep_dbnsfp && params.dbnsfp && params.dbnsfp_consequence) ? "--plugin dbNSFP,'consequence=${params.dbnsfp_consequence}',${params.dbnsfp.split("/")[-1]},${params.dbnsfp_fields}" : '', - (params.vep_loftee) ? "--plugin LoF,loftee_path:/opt/conda/envs/nf-core-vep-${params.vep_version}/share/ensembl-vep-${params.vep_version}-0" : '', + (params.vep_loftee) ? "--plugin LoF,loftee_path://usr/local/share/ensembl-vep-${params.vep_version}" : '', (params.vep_spliceai && params.spliceai_snv && params.spliceai_indel) ? "--plugin SpliceAI,snv=${params.spliceai_snv.split("/")[-1]},indel=${params.spliceai_indel.split("/")[-1]}" : '', (params.vep_spliceregion) ? '--plugin SpliceRegion' : '', (params.vep_out_format) ? "--${params.vep_out_format}" : '--vcf', diff --git a/nextflow.config b/nextflow.config index d61dcafe31..be4804094a 100644 --- a/nextflow.config +++ b/nextflow.config @@ -94,6 +94,7 @@ params { vep_out_format = "vcf" vep_spliceai = null // spliceai plugin disabled within VEP vep_spliceregion = null // spliceregion plugin disabled within VEP + vep_version = "110.0-0" // Should be updated when we update VEP, needs this to get full path to some plugins bcftools_annotations = null // No extra annotation file bcftools_annotations_index = null // No extra annotation file index bcftools_header_lines = null // No header lines to be added to the VCF file diff --git a/nextflow_schema.json b/nextflow_schema.json index 8ea14e6d94..13b48a211c 100644 --- a/nextflow_schema.json +++ b/nextflow_schema.json @@ -540,6 +540,13 @@ "description": "Add an extra custom argument to VEP.", "help_text": "Using this params you can add custom args to VEP." }, + "vep_version": { + "type": "string", + "default": "110.0-0", + "fa_icon": "fas fa-toolbox", + "description": "Should reflect the VEP version used in the container.", + "help_text": "Used by the loftee plugin that need the full path." + }, "outdir_cache": { "type": "string", "format": "directory-path",