NewPvar {pgenlibr} | R Documentation |
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)
Arguments
filename |
.pvar/.bim file path. |
omit_chrom |
Whether to skip CHROM column. |
omit_pos |
Whether to skip POS column. |
Value
A pvar object, which can be queried for variant IDs and allele codes.
[Package pgenlibr version 0.5.3 Index]