This is a test version of Biostars. For the public version, visit https://www.biostars.org.
reading pgen file into R

Hi,

I downloaded file form here: https://www.cog-genomics.org/plink/2.0/resources#phase3_1kg

The hgdp_chr4.pgen.zst file

I decompressed it to chr4.pfen file but I'm having trouble reading it into R would be happy for your help, tried to make it a bed file but it didn't help:

plink2 --pfile chr4_all.pgen \
       --make-bed \
       --out chr_4_sim
pgen r snp

1 answer

See the pgenlibr package (https://cran.r-project.org/web/packages/pgenlibr/index.html ).

Log in to answer this question.