Lightweight handle to genotype data in any supported format. Stores the file path, detected format, and cached SNP metadata. Used to defer reading genotypes until block-level extraction is needed.
Slots
pathCharacter, path to the genotype file (or stem for plink).
formatCharacter, one of "gds", "vcf", "plink1", "plink2".
snp_infoA
data.framewith columnsSNP,CHR,BP,A1,A2. Cached on first access.n_samplesInteger, number of samples.
sample_idsCharacter vector of sample identifiers.
pgen_ptrAn external pointer for plink2 pgen handle, or NULL.