PLINK: invalid alternate allele on .vcf file
0
0
Entering edit mode
2.4 years ago
Matteo ▴ 10

Hi,

When trying to convert a vcf file to a bed format with PLINK I get the following error:

Error: Invalid alternate allele on line 679 of .vcf file.

I am a frequent user of PLINK and this is the first time I get this. Does anyone have any idea what may cause such an error? Thanks in advance!

Matteo

vcf PLINK • 964 views
ADD COMMENT
0
Entering edit mode

Please print the 679th line of the VCF file (counted with and without header) and show it to us:

sed -n '679p' file.vcf | cut -f1-8
grep -v "^#" file.vcf | sed -n '679p' | cut -f1-8

EDIT: To be more efficient, stop processing at line 680 or as early as possible.

sed -n '679p;680q' file.vcf | cut -f1-8
grep -m679 -v "^#" file.vcf | tail -n 1 | cut -f1-8
ADD REPLY

Login before adding your answer.

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