Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A "extra_vep_options" specifically for SV? #588

Open
A97paupic opened this issue Mar 3, 2025 · 3 comments
Open

A "extra_vep_options" specifically for SV? #588

A97paupic opened this issue Mar 3, 2025 · 3 comments
Labels
enhancement New feature or request

Comments

@A97paupic
Copy link

Description of feature

Hi, would it be possible to add an "extra_vep_options" specifically for SV so that one can separate between SNV and SV specific arguments? At the moment the ANNOTATE_SVS:ENSEMBLVEP_SV process will fail whenever I add arguments specific to SNV annotation. Thanks in advance!

Kind Regards,
Paul

@A97paupic A97paupic added the enhancement New feature or request label Mar 3, 2025
@fellen31
Copy link
Collaborator

fellen31 commented Mar 3, 2025

Hi Paul, I agree there should be an easier way to add arguments to VEP. extra_vep_options was mainly added for the test profile, but it could be changed into adding extra arguments for SNVs and SVs separately as you suggest. A problem with using params might be if you need to remove or change something that is in nallo by default.

In the meantime, you can achieve similar results by supplying a config file that overrides the default settings, copying the default arguments from nallo and then modifying them to fit your needs, e.g.:

process {
    withName: '.*:ANNOTATE_SVS:ENSEMBLVEP_SV' {
        ext.args = [
          '--dir_plugins .',
          '--plugin pLI,grch38_vep_112_pli_values_-v1.0-.txt',
          '--distance 5000',
          '--buffer_size 5000',
          '--format vcf --max_sv_size 248387328',
          '--appris --biotype --cache --canonical --ccds --compress_output bgzip',
          '--domains --exclude_predicted --force_overwrite',
          '--hgvs --humdiv --no_progress --numbers',
          '--per_gene',
          '--polyphen p --protein --offline --sift p --regulatory --symbol --tsl',
          '--uniprot --vcf',
          '--no_stats',
          '--merged'
        ].join(' ')
    }
    withName: '.*:SNV_ANNOTATION:ENSEMBLVEP_SNV' {
        ext.args = [
            '--dir_plugins .',
            '--plugin LoFtool,grch38_vep_112_loftool_scores_-v1.0-.txt',
            '--plugin pLI,grch38_vep_112_pli_values_-v1.0-.txt',
            '--plugin SpliceAI,snv=spliceai_scores.raw.snv.hg38.vcf.gz,indel=spliceai_scores.raw.indel.hg38.vcf.gz',
            '--distance 5000',
            '--buffer_size 20000',
            '--format vcf --max_sv_size 248387328',
            '--appris --biotype --cache --canonical --ccds --compress_output bgzip',
            '--domains --exclude_predicted --force_overwrite',
            '--hgvs --humdiv --no_progress --numbers',
            '--polyphen p --protein --offline --regulatory --sift p --symbol --tsl',
            '--uniprot --vcf',
            '--no_stats',
            '--merged',
            '--custom grch38_clinvar_20250217_renamed_reformatted.vcf.gz,CLINVAR,vcf,exact,0,CLNSIG,CLNVID,CLNREVSTAT'
        ].join(' ')
    }
}

@A97paupic
Copy link
Author

Thanks, I will try supplying it to a config file!

Kind Regards,
Paul

@fellen31
Copy link
Collaborator

fellen31 commented Mar 5, 2025

You might be interested in checking out genomic-medicine-sweden/nallorefs#1 as well, trying to explain more or less exactly how Nallo is run in Uppsala/Stockholm at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

2 participants