Does anyone have any idea if/how it’s possible to ...
# modules
a
Does anyone have any idea if/how it’s possible to use the
ENSEMBL_VEP
module and pass
--custom
for custom annotations using other databases like:
Copy code
--custom file=$gnomad_db,short_name=gnomAD,format=vcf,type=exact,fields=AF_joint%AF_exomes%AF_genomes%nhomalt_joint%nhomalt_exomes%nhomalt_genomes \
--custom file=$clinvar_db,short_name=ClinVar,format=vcf,type=exact,coords=0,fields=CLNSIG \
I thought about passing the files via the
extra_files
channel but then the issue is that the filenames are not able to be dynamically calculated. The same issue exists for plugins AFAICT too?
Copy code
--plugin CADD,sv=$cadd_sv_db \
m
We use a custom config, and this seems to work just fine https://github.com/nf-cmgg/smallvariants/blob/dev/conf/modules.config#L256
a
Hmm, ok yeah, so you are having to manually compute the filename of the custom DB files and use the
params
directly rather than accessing them by staged value. I think it's a fine solution but I wish there was a cleaner way (maybe the upcoming record types will help with this)
m
In sarek I managed to hack the dbsnfp files to pass to the VEP modules
cowboy mild panic 1
I can try to dig the thread
👀 1