adding allele frequencies to a vcf
1
0
Entering edit mode
2.5 years ago
eric.londin ▴ 60

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 • 1.1k views
ADD COMMENT
4
Entering edit mode
2.5 years ago
4galaxy77 2.8k

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: 1833 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