Repository navigation
Conversation
This module can build a snpEff config file and database from an input reference fasta, annotation and optionally cds/protein file. It outputs the database and config file separately. The snpEff config is created based on an existing template file (user-provided, but could alternatively be found inside snpEff's install directory), and appends appropriate genome lines for the all provided genome. The snpEff build command makes use of the dataDir flag in combination with a relative path, which snpEff resolves relative to the provided config file. This will override any datadir definition in the config file.
Makes snpeff annotation module compatible with the build module. The module expects a VCF, snpeff config and snpeff database as its inputs. To be determined whether or not this presents a breaking change compared to the previous implementation (e.g. cache_command vs datadir).
You could add a test to the annotation module that uses your custom input in a setup block and see what happens |
famosab
left a comment
There was a problem hiding this comment.
You need to add tests to this module!
There was a problem hiding this comment.
You can run
nextflow lint -format -sort-declarations -spaces 4 -harshil-alignmenton this file to clean this up nicely.
|
Just a quick message to say this is still in my backlog... Thanks for the suggestions though @famosab ! |
|
sorry, wrong tab |
My attempt at improving the snpEff module(s) to make it possible to generate a snpEff config file and database directory from reference fasta/annotation/cds/protein files.
Motivation
For the use-cases of my lab (small pathogen genomes), we've up until now always relied on creating a custom snpEff database ourselves, rather than using the pre-built databases as recommended by snpEff. We reasoned this makes it easier to control the versions of reference genomes and ensure we are using the same ones for alignment and annotation.
I can imagine there are other use cases where custom genomes not present in the database are required as well.
Note I haven't dived into https://annotation-cache.github.io/ yet, but I guess even there it makes sense to allow users to create a completely custom local database if they desire to do so.
Caveats and todos
Related info:
PR checklist
Closes #XXX
topic: versions- See version_topicslabelnf-core modules test <MODULE> --profile dockernf-core modules test <MODULE> --profile singularitynf-core modules test <MODULE> --profile condanf-core subworkflows test <SUBWORKFLOW> --profile dockernf-core subworkflows test <SUBWORKFLOW> --profile singularitynf-core subworkflows test <SUBWORKFLOW> --profile conda