Compute the LD correlation matrix for a block of SNPs.
Delegates to computeLd for the actual computation,
with automatic backend selection based on file format unless
overridden.
Arguments
- handle
A
GenotypeHandleobject.- snpIdx
Integer vector of 1-based SNP indices.
- backend
Character, one of
"internal"(default),"snprelate", or"snpstats". When"internal", GDS-format handles automatically useSNPRelate::snpgdsLDMatvia the native GDS path; other formats use the internal correlator.- method
Character, LD computation method passed to
computeLd. Default"sample".- ...
Additional arguments passed to
computeLd(e.g.,shrinkage,trimSamples).