Skip to content

Commit 7ba61bd

Browse files
authored
Merge pull request #582 from asp8200/vep_output_format
Adding option for setting file-output-format for VEP
2 parents db638bd + bc36841 commit 7ba61bd

13 files changed

Lines changed: 100 additions & 49 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2929
- [#540](https://github.com/nf-core/sarek/pull/540) - Add modules and subworkflows for `cnvkit` somatic mode
3030
- [#557](https://github.com/nf-core/sarek/pull/557) - Add `Haplotypecaller` single sample mode together with `CNNScoreVariants` and `FilterVariantTranches`
3131
- [#576](https://github.com/nf-core/sarek/pull/576) - Add modules and subworkflows for `cnvkit` germline mode
32+
- [#582](https://github.com/nf-core/sarek/pull/582) - Added option `--vep_out_format` for setting the format of the output-file from VEP to `json`, `tab` or `vcf` (default)
3233

3334
### Changed
3435

conf/modules.config

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,18 +1056,30 @@ process{
10561056
(params.vep_dbnsfp && params.dbnsfp) ? '--plugin dbNSFP,dbNSFP.gz,rs_dbSNP,HGVSc_VEP,HGVSp_VEP,1000Gp3_EAS_AF,1000Gp3_AMR_AF,LRT_score,GERP++_RS,gnomAD_exomes_AF' : '',
10571057
(params.vep_loftee) ? '--plugin LoF,loftee_path:/opt/conda/envs/nf-core-vep-104.3/share/ensembl-vep-104.3-0' : '',
10581058
(params.vep_spliceai && params.spliceai_snv && params.spliceai_indel) ? '--plugin SpliceAI,snv=spliceai_scores.raw.snv.hg38.vcf.gz,indel=spliceai_scores.raw.indel.hg38.vcf.gz' : '',
1059-
(params.vep_spliceregion) ? '--plugin SpliceRegion' : ''
1059+
(params.vep_spliceregion) ? '--plugin SpliceRegion' : '',
1060+
(params.vep_out_format) ? "--${params.vep_out_format}" : '--vcf'
10601061
].join(' ').trim()
10611062
if (!params.vep_cache) container = { params.vep_genome ? "nfcore/vep:104.3.${params.vep_genome}" : "nfcore/vep:104.3.${params.genome}" }
10621063
publishDir = [
1063-
mode: params.publish_dir_mode,
1064-
path: { "${params.outdir}/reports/EnsemblVEP/${meta.id}/${meta.variantcaller}" },
1065-
pattern: "*html"
1064+
[
1065+
mode: params.publish_dir_mode,
1066+
path: { "${params.outdir}/reports/EnsemblVEP/${meta.id}/${meta.variantcaller}" },
1067+
pattern: "*html"
1068+
],
1069+
[
1070+
mode: params.publish_dir_mode,
1071+
path: { "${params.outdir}/annotation/${meta.id}/${meta.variantcaller}" },
1072+
pattern: "*{json,tab}"
1073+
]
10661074
]
10671075
}
10681076

1077+
withName: 'NFCORE_SAREK:SAREK:ANNOTATE:ANNOTATION_ENSEMBLVEP:ENSEMBLVEP' {
1078+
ext.prefix = {"${meta.id}_VEP"}
1079+
}
1080+
10691081
withName: ".*:ANNOTATION_MERGE:ENSEMBLVEP" {
1070-
// Output file will have format *_snpEff_VEP.ann.vcf
1082+
// Output file will have format *_snpEff_VEP.ann.vcf, *_snpEff_VEP.ann.json or *_snpEff_VEP.ann.tab
10711083
ext.prefix = { "${vcf.baseName.minus(".ann.vcf")}_VEP" }
10721084
}
10731085

modules.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"git_sha": "e745e167c1020928ef20ea1397b6b4d230681b4d"
6868
},
6969
"ensemblvep": {
70-
"git_sha": "40dd662fd26c3eb3160b7c8cbbe9bff80bbe2c30"
70+
"git_sha": "30f72e24822576c6f90a0bf9db678b403c70eccf"
7171
},
7272
"fastqc": {
7373
"git_sha": "49b18b1639f4f7104187058866a8fab33332bdfe"

modules/nf-core/modules/ensemblvep/Dockerfile

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/nf-core/modules/ensemblvep/build.sh

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/nf-core/modules/ensemblvep/environment.yml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/nf-core/modules/ensemblvep/main.nf

Lines changed: 12 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/nf-core/modules/ensemblvep/meta.yml

Lines changed: 17 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nextflow.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ params {
6767

6868

6969
// Annotation
70+
vep_out_format = 'vcf'
7071
vep_dbnsfp = null // dbnsfp plugin disabled within VEP
7172
dbnsfp = null // No dbnsfp processed file
7273
dbnsfp_tbi = null // No dbnsfp processed file index

nextflow_schema.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,14 @@
538538
"description": "VEP cache version.",
539539
"help_text": "If you use AWS iGenomes, this has already been set for you appropriately."
540540
},
541+
"vep_out_format": {
542+
"type": "string",
543+
"default": "vcf",
544+
"description": "VEP output-file format.",
545+
"enum": ["json", "tab", "vcf"],
546+
"help_text": "Sets the format of the output-file from VEP. Available formats: json, tab and vcf.",
547+
"fa_icon": "fas fa-table"
548+
},
541549
"save_reference": {
542550
"type": "boolean",
543551
"fa_icon": "fas fa-download",

0 commit comments

Comments
 (0)