converting genotype file to vcf
0
0
Entering edit mode
6.4 years ago
sm15766 • 0

hi,

I have some data in the format

    113934  126070
Individual1 0   0
Individual1 0   0
Individual2 0   0
Individual2 1   0
Individual3 0   0
Individual3 0   0
Individual4 0   0
Individual4   0     1

etc, with each column a SNP and each 2 rows haplotype from an individual. I'd quite like to convert this to VCF format, where the first individual would be represented by (1,0,0) (homozygous for reference).

Does anyone know of any scripts to do this, as I'm not sure I'm up to making one myself.

thanks.

SNP vcf • 2.0k views
ADD COMMENT
1
Entering edit mode

You mean converting this genotype file to the VCF-formatted genotype, right? Because if you want a whole VCF line, you miss some information!

EDIT: individual 4 has only 1 line!

ADD REPLY

Login before adding your answer.

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