.defineSubspace | R Documentation |
Helper function for ldfSce and cms to define or recalculate the subspace for analysis.
.defineSubspace(sce, assay_name, dim_red, n_dim)
sce |
A |
assay_name |
Character. Name of the assay to use for PCA. Only relevant
if no existing 'dim_red' is provided. Must be one of
|
dim_red |
Character. Name of embeddings to use as subspace. |
n_dim |
Numeric. Number of subspace elements to include to define subspace. |
Function to determine the subspace for ldfDiff
and
cms
. Checks whether the defined 'dim_red' is present.
Only if no subspace is defined or present it will perform a PCA using
runPCA
. To calculate PCA counts defined in 'assay_name' are used.
A matrix of cell embeddings with reduced dimensions as columns.
ldfSce
, cms
.
Other helper functions:
.cmsCell()
,
.filterKnn()
,
.filterLocMin()
,
.ldfKnn()
,
.smoothCms()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.