A simple wrapper around the R function prcomp.
A matrix containing the raw calls. The rows are the samples and the columns are the SNPs.
A one dimensional vector, one value per sample: this is the first principal component.
The output vector is normalized to have a standard deviation of 1.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.