Hi all. I am writing tests for fastVEP/annotate m...
# modules
d
Hi all. I am writing tests for fastVEP/annotate module before the PR and I am inquiring about maybe adding supplementary database data as part of the test (You build this with fastVEP/sa-build). What are the steps to add this test annotation to the repo?
👀 1
m
what do you want to add?
d
a sample supplementary annotation db produced by fastvep -sa-build. Its an optional input for fastvep annotate
More specifically, I am thinking of adding a ClinVar annotation as produced by: fastvep sa-build --source clinvar --input clinvar.vcf.gz --output clinvar. The source of this is in the readme github.com/Huang-lab/fastVEP
👀 1
m
d
Okay. I’ll get to it soon. While I am at it, would it be advisable to also add the clinvar vcf I will use to build the annotation? I am not sure if anyone else will add fastvep/sa-build in the future, but that could be useful (if there isn’t one already on the repo)
m
that make sense indeed
we try to get files as small as possible, and based on the same refs whenever we can
d
I see that files are usually subsetted at chr22 so I’ll follow that convention
m
wonderful
does fastVEP work with standard VEP cache, and support standard VEP plugins?
d
Regarding the plugins, I don’t think they current support that. There is a --cache-dir flag for the path to VEP cache
m
I usually test with cache from wbcel235 that I host on #annotation-cache
I’ve been wondering about doing a subset of GRCh38 to allow for more accurate tests
d
I am using clinvars GRCh38 vcf for building this module. If I were to add the vep-cache to the tests, what would the best call be then?
m
then for that, I would follow what we already do for the vep modules
that’ll be simpler and easier to maintain long term, and whenever we switch to new data, we can migrate all in one go
d
I will adjust the test data then. Thanks
I will have to build the -sa with custom_vcf as clinvar only works with human, The rest should be dito. I expect to have a working pr soon 🙂
🎉 1
m
do not hesitate to ping me
d
I submitted the pr now for the module now.
m
only minor comments
We can improve snapshots creation via sanitizeoutput
d
so something like sanitizeoutput(process.out)
I’ll quickly get it sorted then
m
yes, you can specify keys
there should be multiple example on the modules repo already
@Louis Le Nézet has been putting that EVERYWHERE (almost)
l
At some point we will have clean snapshot everywhere 😄
d
Alright I have added those options to the tests - I am a bit slow about this because tests honestly still confuses me (and prek failing because of a single white space lol)
m
just one question
I noticed you used s3://annotation-cache/vep_cache/115_WBcel235/caenorhabditis_elegans/115_WBcel235/ for the path to the annotation cache
Vep use s3://annotation-cache/vep_cache/115_WBcel235/ for the similar tests
d
They point to the same cache, no? or am I mistaken
m
yeah, they are, it’s just I was wondering how is fastvep assessing the cache
If I remember well for vep it assumes everything is organised in a single folder, and it reconstruct the path to it via the species, cache version and genome
which was bad for me in a cloud setting, so I added an extra layer
d
I am unsure on the technical side how fastvep assesses cache under the hood. I may have to look more into that
I looked for the log but I must have deleted it. If I remember correctly, when I tested the module with ensembles directory, it passed but I got 0 variants
It appears that fastvep looks for info.txt which is not present in ensembles path. It then reads the vars.gz directly with its index (vars.gz.tbi)
It’s hardcoded into fastVEP
So that’s why you have to go a bit deeper in the tree to access cache in this case
m
I see, fine by me then