reading pgen file into R
1
0
Entering edit mode
16 months ago
Eliza ▴ 30

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 • 976 views
ADD COMMENT
0
Entering edit mode

Please follow the tutorial in the link below. It will help you what you wanted to accomplish. Please make sure that you are using Plink2-

https://cran.r-project.org/web/packages/snpsettest/vignettes/reference_1000Genomes.html

ADD REPLY
3
Entering edit mode
16 months ago

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

ADD COMMENT

Login before adding your answer.

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