PLINK and PLINK2, AF and MAF
1
0
Entering edit mode
23 months ago
Sammy ▴ 20

Trying to calculate MAFs for a VCF file with 40 samples, tried PLINK and PLINK2 (--freq) and the output is something like:

chr | rs code | ref allele | alt allele | MAF(plink1) or AF(plink2) | no. alleles

which is great! But some rs codes are . and don't know what variants it's referring to. The fault is obviously in the VCF file but I would like another column with the positions, is there any option I'm missing? What about ['cols='<column set descriptor>]? Not sure is what I want. Do you have any suggestions of how I can link them together?

Thanks!

maf plink af vcf • 752 views
ADD COMMENT
1
Entering edit mode
23 months ago
4galaxy77 2.8k

This is because your vcf file did not have any value in the ID column.

Run plink2 with the following flag:

--set-missing-var-ids @:#
ADD COMMENT
0
Entering edit mode

Thank you! Exactly what I was looking for!

ADD REPLY

Login before adding your answer.

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