PLINK: How to concatenate PED and MAP files into single data-frame?
1
0
Entering edit mode
8.0 years ago
reza.jabal ▴ 580

Hi Everyone, I am trying to build a random forest classifier for a 6K microarray data. Preliminary analysis is carried out in plink and respective bed/bim/fam files are passed to me for additional analysis. As I am modeling the data in Python, I require to concatenate those files into one single data-frame which I could pass it to python. I am wondering if there's any way I could merge PED & MAP files. I would like to keep individual's ID and their genotype/phenotype data.

plink python modelling • 3.4k views
ADD COMMENT
1
Entering edit mode
8.0 years ago
Joey ▴ 430

Look at the --recodeA option in PLINK v1.07 or --recode A option in PLINK v1.90. It might be what you want.

Say you have example.fam, example.bim, example.bed something like

plink --bfile example --recodeA --out recoded
ADD COMMENT

Login before adding your answer.

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