Thanks Pierre! I shall try this.. I wrote a python script to do this but then while executing vcfstats, it throws error mentioning no sample columns in VCF file.
• 1 views
•
link
Dear All,
Is there an option for filtering specific substitutions only from VCF file using VCFtools or bcftools? I want to extract lines from vcffile that contain A and T in Ref column.
Thanks in advance!
Log in to answer this question.
I think you mean A or T, in ref column. @OP
bcftools view -i 'REF="A" | REF="T"' example.vcf.gzorbcftools filter -i 'REF=="A"|REF=="T"' example.vcf.gzbgzip and tabix (index) example vcf for bcftools processing