I have PLINK dosage files in the form pgen/psam/pvar. I would like to know how to do either/both of the following:
Convert the file set to bed/bim/fam files (hard-calls)
Read the allele dosage from pgen into R as a continuous variable
Thanks.
I have PLINK dosage files in the form pgen/psam/pvar. I would like to know how to do either/both of the following:
Convert the file set to bed/bim/fam files (hard-calls)
Read the allele dosage from pgen into R as a continuous variable
Thanks.
Convert to hard-calls: "plink2 --pfile ... --make-bed --out ..."
Convert to an R-readable form: "plink2 --pfile ... --export A-transpose --out ..."
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
What have you tried?