Description Usage Arguments Value Examples
View source: R/utility_functions.R
Compute the *p SNPs*-by-*p SNPs* variance-covariance matrix of SNP dosages. This is an estimator of the LD between loci within a given population.
1 |
Z |
column-centered matrix of SNP dosages. Assumes SNPs in Z were originally coded 0, 1, 2 were column centered. |
NOTE: this matrix is going to be big in practice. The *p SNPs*-by-*p SNPs* variance-covariance matrix of SNP dosages. may be worth computing in an R session using multi-threaded BLAS
1 2 | Z<-centerDosage(M)
genoVarCovarMat<-genoVarCovarMatFunc(Z)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.