Extract the LD correlation matrix an LdMatrix
holds, labelled by its variant ids.
Examples
data(eqtlRegionExample)
X <- eqtlRegionExample$X[, 1:8]
ld <- LdMatrix(cor(X), nSamples = nrow(X))
ldMatrix(ld)[1:3, 1:3]
#> chr22:32119788:T:C chr22:32119867:T:G chr22:32119961:T:G
#> chr22:32119788:T:C 1.0000000 1.0000000 -0.3896071
#> chr22:32119867:T:G 1.0000000 1.0000000 -0.3896071
#> chr22:32119961:T:G -0.3896071 -0.3896071 1.0000000