This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Extract MAF for vcf file

Hi All,

I have a vcf file and would like to extract MAF from dbSNP corresponding to each SNP from the vcf file. Doing it one by one would take ages. Any suggestions?

vcf maf

1 answer

convert the dbsnp to CHROM POS REF ALT MAF using bcftools query and then use bcftools annotate to transfert the dbsnp table to your vcf.

Log in to answer this question.