runPCA.RdTakes 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(...)An object of class SPATA2 or, in case of S4 generics,
objects of classes for which a method has been defined.
Numeric value. Denotes the number of principal components to be computed.
Character vector or NULL. If character, subsets the data matrix
by variable/molecule names such that only the specified ones are used for dimensional reduction.
If NULL, the unsubstted matrix denoted in mtr_name is used.
Character value. The name of the matrix of interest. Defaults
to the active matrix of the assay, as denoted by activateMatrix().
Only relevant if the SPATA2 object contains more than
one assay: Denotes the assay of interest and thus the
molecular modality to use. Defaults to the active assay
as set by activateAssay().
Additional arguments given to irlba::prcomp_irlba().
The updated input object, containing the added, removed or computed results.