This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to convert the VCF file into the haplotype format?

Hello~ everyone

As the title mentioned, does anyone know how to convert the VCF file into this kind of haplotype format as the attached figure(https://www.dropbox.com/s/8o2yt6gbikocjo2/200123-haplotype.png?dl=0) haplotype figure

figure

vcf haplotype

This is untested but you may be able to do it with SHAPEIT, like this:

shapeit -convert \
  --input-vcf in.vcf \
  --output-haps out.haps ;

Let me know if that works, in which case, I will move this to an answer

0 answers

No answers yet.

Log in to answer this question.