S4 container holding a path + format + metadata for lazy genotype access. Supports PLINK1 (.bed/.bim/.fam), PLINK2 (.pgen/.pvar/.psam), VCF/BCF, and GDS.
Slots
pathCharacter, file path. For a one-file-per-chromosome handle this is the chrom-meta file path (a display/provenance value); the per-chromosome payload files live in
chromPaths.formatCharacter, one of
"plink1","plink2","vcf","gds".snpInfodata.frame, SNP metadata read from the index/sidecar. For a sharded handle this is the union across chromosomes (row-bound in the order the shards were supplied), so
snpIdxstays a single global index space.nSamplesInteger, number of samples.
sampleIdsCharacter vector of sample identifiers.
pgenPtrOpaque pointer for PLINK2 reader state (NULL otherwise).
chromPathsNamed character vector mapping canonical chromosome (e.g.
"21","X") to the per-chromosome payload path/prefix. Empty (character(0)) for a single-file handle; non-empty marks a one-file-per-chromosome (sharded) handle whose extraction is routed by chromosome.