Description Usage Arguments Details
Compute a linear embedding over a TourExperiment
object.
1 2 3 4 5 6 7 8 9 10 11 12 13 | embed_linear(.data, num_comp, .on = NULL, center = TRUE,
scale = FALSE, .subset = NULL,
.parallel = BiocParallel::SerialParam(), .engine)
## S4 method for signature 'missing'
embed_linear(.data, num_comp, .on = NULL,
center = TRUE, scale = FALSE, .subset = NULL,
.parallel = BiocParallel::SerialParam(), .engine)
## S4 method for signature 'BiocSingularParam'
embed_linear(.data, num_comp, .on = NULL,
center = TRUE, scale = FALSE, .subset = NULL,
.parallel = BiocParallel::SerialParam(), .engine)
|
.data |
A |
num_comp |
Number of components to retain |
.on |
The named element in |
center |
Should columns be centered? Default = TRUE |
scale |
Should columns be scaled to unit variance? |
.subset |
Restrict linear embedding to run on a subset of rows. (Default = NULL). |
.parallel |
A 'BiocParallel::BPPARAM()“ object, default is to compute in serial. |
.engine |
How to compute the embedding. If missing, defaults to |
This function is a wrapper to BiocSingular::runPCA()
, with
additions for computing on parts of TourExperiment
object. This function
always returns a TourExperiment
with the reducedDim
slot updated
with SingleCellExperiment::LinearEmbeddingMatrix
containing the
sample factors, loadings, and factor data from the principal components.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.