Construct an LDData from a correlation matrix and/or
genotype handle, plus variant metadata as a GRanges.
Usage
LDData(
correlation = NULL,
genotype_handle = NULL,
snp_idx = NULL,
variants,
block_metadata,
n_ref = 0L
)Arguments
- correlation
A correlation matrix, list of matrices, or NULL.
- genotype_handle
A GenotypeHandle, list of GenotypeHandles, or NULL.
- snp_idx
Integer vector of SNP indices, or NULL.
- variants
A GRanges with variant metadata (must have variant_id in mcols, plus A1, A2).
- block_metadata
LDBlocks or data.frame with block info.
- n_ref
Integer, reference panel sample size.