Description Usage Arguments Value See Also
View source: R/mappingfunctions.R
PCA can be represented in an a number of different ways, provided that the structure $$Y = U D V^T$$ flashpca uses this canonical form but the weights are out by a factor √{2} due to diploid genomes. Plink-like loadings instead scale U by the square root of the eigenvalues.
1 | transform_pcs(snpweights, pcvals, mode)
|
snpweights |
A weighting matrix of dimension L by K |
pcvals |
Eigenvalues from the original PCA |
mode |
"plink" pr "flashpca" |
a canonical scaled version of the snpweights matrix
transform.plinkref
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.