marker_pca | R Documentation |
Perform PCA on marker data
marker_pca(geno, snps = "rows")
geno |
A matrix of SNP data with SNPs in minor-allele dosage format: 2 = homozygous for minor allele 1 = heterozygous 0 = homozygous for major allele NA = missing data |
snps |
Either "rows" to indicate that SNPs are in rows and individuals are in columns, or "cols" to indicate the SNPs are in columns and individuals are in rows |
This function performs a "quick and dirty" principle component analysis on the input matrix of SNP data. A genetic relationship matrix is calculated first, and then an Eigen decomposition is performed on this matrix
The Eigen decomposition of the input genotypic matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.