S4 container for LD information. Stores either a pre-computed
correlation matrix or a GenotypeHandle (or list of handles for
mixture panels) for lazy genotype/correlation access.
Slots
correlationA correlation matrix, a list of per-block matrices (block-diagonal LD), or NULL if genotypes are available and R should be computed on demand.
genotypeHandleA
GenotypeHandle, a list ofGenotypeHandles (for mixture panels), or NULL when only pre-computed R is available.snpIdxInteger vector of 1-based SNP indices into the handle's
snpInfo. NULL when correlation is pre-computed.variantsA
GRangesobject with variant metadata (A1, A2, variant_id, and optionally allele_freq, variance, n_nomiss).blockMetadataAn
LdBlocksobject or adata.framewith block boundary information.nRefInteger, reference panel sample size.
mixtureWeightsNULL when
genotypeHandleis a singleGenotypeHandle; a numeric vector of mixing proportions (one per panel, summing to 1) whengenotypeHandleis a list ofGenotypeHandles. Used bygetCorrelation()to compute a weighted-average mixture LD matrix; required whenevergenotypeHandleis a list andgetCorrelation()will be called.