Skip to contents

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

path

Character, path to the genotype file (or stem for plink).

format

Character, one of "gds", "vcf", "plink1", "plink2".

snp_info

A data.frame with columns SNP, CHR, BP, A1, A2. Cached on first access.

n_samples

Integer, number of samples.

sample_ids

Character vector of sample identifiers.

pgen_ptr

An external pointer for plink2 pgen handle, or NULL.