Change plink file for logistic in R
1
1
Entering edit mode
8.2 years ago
C-man ▴ 10

Hi all,

I would like to extract single snp from plink to R for a logistic regression.

I used --recode and got map/ped file. Also, I used --make-bed and got binary file.

Please anyone navigate me how to change from those file to right format for running logistic in R

Any suggestions are appreciated.

Thanks

plink SNP logistic R • 2.6k views
ADD COMMENT
0
Entering edit mode

The r function convert.snp.ped from R package GenABEL.

ADD REPLY
3
Entering edit mode
8.2 years ago

In PLINK you can use the --recodeA flag to output your data as a single data frame, where each SNP is coded as allele dose; one SNP per column.

ADD COMMENT

Login before adding your answer.

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