Entering edit mode
6.2 years ago
sambioinfo2018
▴
20
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!
I think you mean A or T, in ref column. @OP
bcftools view -i 'REF="A" | REF="T"' example.vcf.gz
orbcftools filter -i 'REF=="A"|REF=="T"' example.vcf.gz
bgzip and tabix (index) example vcf for bcftools processing