Construct an LdData from a correlation matrix and/or
genotype handle, plus variant metadata as a GRanges.
Usage
LdData(
correlation = NULL,
genotypeHandle = NULL,
snpIdx = NULL,
variants,
blockMetadata,
nRef = 0L,
mixtureWeights = NULL
)Arguments
- correlation
A correlation matrix, list of matrices, or NULL.
- genotypeHandle
A GenotypeHandle, list of GenotypeHandles, or NULL.
- snpIdx
Integer vector of SNP indices, or NULL.
- variants
A GRanges with variant metadata (must have variant_id in mcols, plus A1, A2).
- blockMetadata
LdBlocks or data.frame with block info.
- nRef
Integer, reference panel sample size.
- mixtureWeights
Optional numeric vector of mixing proportions, one per panel in
genotypeHandlewhen it is a list. Must be non-negative and sum to 1. Required whenevergenotypeHandleis a list and downstream code will callgetCorrelation().