Entering edit mode
8.1 years ago
SOHAIL
▴
410
Hi Everyone,
I want to remove all sites with more than 5% of no-call (./.
) among all the samples in my VCF file, could you please guide me how I can do that variant filtration?
Thanks!
Thanks @Pierre.. That worked perfectly fine for me..
However i am curious and interested to use VCFFILTERJS more, Could you please indicate any guideline for writing java scripts expressions particularly for VCFFILTER -e. I have seen some examples but i wanna know about basic functions like: variant.getNSamples() or variant.getGenotype().isNoCall() , etc.
this tools uses a javascript engine (nashorn) that can read the underlying java classes of the htsjdk library like https://samtools.github.io/htsjdk/javadoc/htsjdk/htsjdk/variant/variantcontext/VariantContext.html . It uses a old and well-known java technology called reflection: https://docs.oracle.com/javase/tutorial/reflect/ .