Description Usage Arguments Value Examples
Compute the projection of either samples or time series features onto a PCA space. In case, of PCA for features, the PCA can be computed for individual sample group as indicated or for samples from all groups. In either, case the data is first collapsed over replicates, so that each gene is represented as a vector of a single time course.
1 2 |
object |
A |
collapse.replicates |
Whether PCA should be computed on the data with replicates aggregated. |
groups.selected |
An optional character string indicating a particular group of samples PCA should be applied to. By default set to NULL and all groups are included. |
var.stabilize.method |
Method for variance stabilization (VST).
Currently, supports "none" (no VST), "log1p" (log plus one), "asinh"
(inverse hyperbolic sine) or "deseq"
( |
Returns TimeSeriesExperiment
object with PCA results
in dim.red
slot, a lists containing matrices of coordinates
'pca_sample', and 'pca_features', as well as a vector 'pca_eigs'.
1 2 3 4 | data("endoderm_small")
endoderm_small <- runPCA(endoderm_small)
head(dimensionReduction(endoderm_small, "pca_sample")[, 1:5])
head(dimensionReduction(endoderm_small, "pca_eigs"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.