Learn R Programming

pgenlibr (version 0.4.0)

NewPvar: Loads variant positions, IDs, and allele codes from a .pvar or .bim file (which can be compressed with gzip or Zstd).

Description

Loads variant positions, IDs, and allele codes from a .pvar or .bim file (which can be compressed with gzip or Zstd).

Usage

NewPvar(filename, omit_chrom = FALSE, omit_pos = FALSE)

Value

A pvar object, which can be queried for variant IDs and allele codes.

Arguments

filename

.pvar/.bim file path.

omit_chrom

Whether to skip CHROM column.

omit_pos

Whether to skip POS column.