This is a test version of Biostars. For the public version, visit https://www.biostars.org.
PLINK dosage data - convert and/or read in R

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

What have you tried?

1 answer

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

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

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.

plink2 exports the original dosages.

Log in to answer this question.