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 Sept. 17, 2024, 10:55 p.m.