Help getting Plink files into Treemix
1
0
Entering edit mode
8.0 years ago
devenvyas ▴ 740

Does anyone know how to get Plink data into Treemix? I want to try out the program, but the manual does not indicate how to convert Plink files into Treemix files.

Anyone with experience with this?

plink SNP • 4.2k views
ADD COMMENT
1
Entering edit mode

Not sure if helpful, but the wiki page has:

...
...

3/12/12:
Added a small script to convert stratified allele frequencies output from plink into TreeMix format. 
This will be incorporated into the next release, but for the moment must be downloaded 
separately. To run this, let's say you have data in plink format (e.g., data.bed, data.bim, 
data.fam) and a plink cluster file matching each individual to a population (data.clust).

Now you run:
plink --bfile data --freq --missing --within data.clust
gzip plink.frq
plink2treemix.py plink.frq.gz treemix.frq.gz
ADD REPLY
3
Entering edit mode
6.0 years ago
Gabriel R. ★ 2.9k

I just saw this question. I have added a plink import, it is one line in glactools:

glactools bplink2acf --fai reference.fai [PLINK prefix] |  glactools acf2treemix -  |gzip > treemix.gz
ADD COMMENT

Login before adding your answer.

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