adding allele frequencies to a vcf
1
0
Entering edit mode
8 weeks ago
eric.londin ▴ 30

Hi all, I have a vcf file generated from a few hundred samples. For each variant within the file, I would like to calculate the allele frequency of each allele and then add that information as a field into the 'INFO' field of the file. I know that I can use vcftools to generate the allele frequencies, but I'm at a bit of a loss as to how I can add that back into the INFO section of the vcf. Alternatively, is there an annotation tool (such as SnpSift, VEP, or some other) that can calculate and do this. If not, I would be left to creating my own script to do it, which I would prefer to avoid. Thanks for any help

allele vcf maf frequencies • 198 views
ADD COMMENT
3
Entering edit mode
8 weeks ago
4galaxy77 ★ 1.2k

Try this

bcftools +fill-tags in.bcf -Ob -o out.bcf -- -t all
ADD COMMENT
0
Entering edit mode

Thanks. that works. I was unaware of that option in bcftools!

ADD REPLY

Login before adding your answer.

Traffic: 1413 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