R/ctwas_read_data.R
read_pgen.Rd
Read pgen file into R
read_pgen(pgen, variantidx = NULL, meanimpute = F)
.pgen file or .bed file
variant index. If NULL, all variants will be extracted.
A matrix, columns are allele count for each SNP, rows are for each sample.