Thank you SeqBench.
My goal is to retain only those snps where heterozygosity is less than 20% and filter out snps not falling under threshold.
I do not want to remove samples but snps only.
Is N_PASS a filter for samples or SNPs?
I want some code that behaves as alternative of following code of tassel.
tassel-5-standalone/run_pipeline.pl -Xmx40g -vcf raw.vcf -FilterSiteBuilderPlugin -maxHeterozygous 0.2 -endPlugin -export "het_filtered" -exportType VCF
With bcftools, it's always this: "filter" =
bcftools view+ appropriate include/exclude filtersThanks Ram!
Is it the correct one?
The syntax looks fine. I cannot mentally parse your filter, you can judge its accuracy by trial and error if you establish proper test cases.