Question: converting genotype file to vcf
0
gravatar for sm15766
2.2 years ago by
sm157660
sm157660 wrote:

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 • 1.1k views
ADD COMMENTlink modified 2.2 years ago • written 2.2 years ago by sm157660
1

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 REPLYlink modified 2.2 years ago • written 2.2 years ago by Macspider3.0k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 799 users visited in the last hour