PLINK dosage data - convert and/or read in R
1
2
Entering edit mode
5.8 years ago
Travis ▴ 20

I have PLINK dosage files in the form pgen/psam/pvar. I would like to know how to do either/both of the following:

  1. Convert the file set to bed/bim/fam files (hard-calls)

  2. Read the allele dosage from pgen into R as a continuous variable

Thanks.

plink • 6.2k views
ADD COMMENT
0
Entering edit mode

What have you tried?

ADD REPLY
4
Entering edit mode
5.8 years ago

Convert to hard-calls: "plink2 --pfile ... --make-bed --out ..."

Convert to an R-readable form: "plink2 --pfile ... --export A-transpose --out ..."

ADD COMMENT
0
Entering edit mode

New PLINK user here. Will PLINK automatically apply a hard-call probability threshold to the R-readable form? I am hoping to retrieve the dosage information ranging from 0 --> 2 without applying this probability threshold.

ADD REPLY
1
Entering edit mode

plink2 exports the original dosages.

ADD REPLY
0
Entering edit mode

Thanks so much

ADD REPLY

Login before adding your answer.

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