Man pages for pgenlibr
PLINK 2 Binary (.pgen) Reader

AlleleCodeBufReturns an empty two-row numeric matrix that ReadAlleles()...
BoolBufReturns a bool buffer that ReadAlleles() can load phasing...
BufReturns a numeric buffer that Read() or ReadHardcalls() can...
ClosePgenCloses a pgen object, releasing resources.
ClosePvarCloses a pvar object, releasing memory.
GetAlleleCodeLook up an allele code.
GetAlleleCtReturns the effective number of alleles for a variant. Note...
GetMaxAlleleCtReturns the maximum GetAlleleCt() value across all variants...
GetRawSampleCtReturns the number of samples in the file.
GetVariantChromRetrieve chromosome ID for given variant index.
GetVariantCtReturns the number of variants in the file.
GetVariantIdConvert variant index to variant ID string.
GetVariantPosRetrieve POS (base-pair coordinate on a chromosome) for given...
GetVariantsByIdConvert variant ID string to variant index(es).
HardcallPhasePresentReturns whether explicitly phased hardcalls are present.
IntAlleleCodeBufReturns an empty two-row integer matrix that ReadAlleles()...
IntBufReturns an integer buffer that ReadHardcalls() can load to.
NewPgenOpens a .pgen or PLINK 1 .bed file.
NewPvarLoads variant positions, IDs, and allele codes from a .pvar...
pgenlibr-packagePLINK 2 Binary (.pgen) Reader
ReadLoads the variant_numth variant, and then fills buf with...
ReadAllelesLoads the variant_numth variant, and then fills acbuf with...
ReadHardcallsLoads the variant_numth variant, and then fills buf with {0,...
ReadIntListLoad hardcalls for multiple variants as an integer matrix.
ReadListLoad dosages for multiple variants as a numeric matrix.
VariantScoresCompute variant scores.
pgenlibr documentation built on April 3, 2025, 6:21 p.m.