prep_pgen: Read .pgen file into R

View source: R/ctwas_read_data.R

prep_pgenR Documentation

Read .pgen file into R

Description

Read .pgen file into R

Usage

prep_pgen(pgenf, pvarf)

Arguments

pgenf

.pgen file or .bed file

pvarf

.pvar file or .bim file with have proper header. Matching 'pgenf'.

Value

A matrix of allele count for each variant (columns) in each sample (rows). ALT allele in pvar file is counted (A1 allele in .bim file is the ALT allele).


simingz/ctwas documentation built on July 16, 2025, 6:30 p.m.