read_pgen: Read pgen file into R

View source: R/ctwas_read_data.R

read_pgenR Documentation

Read pgen file into R

Description

Read pgen file into R

Usage

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.


simingz/ctwas documentation built on Sept. 17, 2024, 10:55 p.m.