Extract variants/SNPs with T>G substitution from a VCF file
1
0
Entering edit mode
17 months ago
Nanu • 0

Is there a way to extract all variants/SNPs in a VCF file that have a T>G change across all chromosomes ? I'm looking at bcftools but but unable to find any filtering options for REF/ALT.

Thank you

VCF SNP • 598 views
ADD COMMENT
2
Entering edit mode
17 months ago
4galaxy77 2.9k

Use bcftools view with the -i flag for including variants.

bcftools view -i'REF=="T" & AlT == "G"'
ADD COMMENT

Login before adding your answer.

Traffic: 1816 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6