R/ctwas_read_data.R
prep_pgen.Rd
Read .pgen file into R
prep_pgen(pgenf, pvarf)
.pgen file or .bed file
.pvar file or .bim file with have proper header. Matching `pgenf`.
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).