runVDJPCA | R Documentation |
Perform Principal Components Analysis (PCA) on the matrix of sample-level clonotype abundances. In the context of clonotype analysis, this is a form of beta diversity.
runVDJPCA(x, ...)
## S4 method for signature 'clonoStats'
runVDJPCA(x, unit = c("samples", "clonotypes"))
x |
A matrix of abundance values where rows are features (clonotypes) and columns are samples. |
... |
additional arguments. |
unit |
Character value indicating whether the unit of interest is
|
A list with class "prcomp"
. The component x
stores the
reduced-dimensional representation of the data. For a full description, see
prcomp
.
data('contigs')
x <- clonoStats(contigs)
runVDJPCA(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.