runPCA | R Documentation |
Takes the data matrix of choice and passes it to
irlba::prcomp_irlba()
.
runPCA(
object,
n_pcs = 30,
variables = NULL,
mtr_name = activeMatrix(object),
assay_name = activeAssay(object),
...
)
runPca(...)
object |
An object of class |
n_pcs |
Numeric value. Denotes the number of principal components to be computed. |
variables |
Character vector or |
mtr_name |
Character value. The name of the matrix of interest. Defaults
to the active matrix of the assay, as denoted by |
assay_name |
Only relevant if the |
... |
Additional arguments given to |
The updated input object, containing the added, removed or computed results.
identifyVariableMolecules()
, plotPcaElbow()
library(SPATA2)
data("example_data")
object <- example_data$object_UKF269T_diet
object <- runPCA(object)
object <- runTSNE(object)
object <- runUMAP(object)
plotPCA(object, color_by = "histology")
plotTSNE(object, color_by = "histology")
plotUMAP(object, color_by = "histology")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.