How to convert PLINK file (map, ped) to haplotype file for XPEHH application
1
1
Entering edit mode
5.9 years ago
Victor ▴ 10

Hello

I am the first year PhD student in University .

Basically, I'm new to PLINK (obviously). Sorry for asking quite a silly question.

I am doing the selection signal with canine and try to use the HP-EXX (https://github.com/joepickrell/xpehh) to get the haplotype score.

However, I only have Plink files (ped, map). I want to know are there any way to convert my plink files to haplotype format. The software require the input haplotype format is one haplotype per line, with alleles coded as 1 and 0.

Many Thanks

SNP genome • 2.3k views
ADD COMMENT
1
Entering edit mode
5.9 years ago
Wietje ▴ 240

To define haplotypes you will need to phase your data (e.g. with Beagle or Shapeit); the conversion to 0-1 format can be accomplished in PLINK (--recode 01). you might want to take a closer look at the PLINK manual and the various options.

And maybe check whether your question has popped up before...

ADD COMMENT

Login before adding your answer.

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