Read pgen file into R

read_pgen(pgen, variantidx = NULL, meanimpute = F)

Arguments

pgen

.pgen file or .bed file

variantidx

variant index. If NULL, all variants will be extracted.

Value

A matrix, columns are allele count for each SNP, rows are for each sample.