View source: R/mcaAndReduction.R
RunMCDMAP | R Documentation |
(!EXPERIMENTAL) Run DiffusionMap on MCA cell and feature coordinates. This will allow to draw the trajectory of both cells and the genes at the same time.
RunMCDMAP(X, reduction, features, dims, reduction.name, ...)
## S3 method for class 'Seurat'
RunMCDMAP(
X,
reduction = "mca",
features = NULL,
dims = seq(50),
reduction.name = "mcdmap",
assay = DefaultAssay(X),
...
)
## S3 method for class 'SingleCellExperiment'
RunMCDMAP(
X,
reduction = "MCA",
features = NULL,
dims = seq(50),
reduction.name = "MCDMAP",
...
)
X |
Seurat or SingleCellExperiment object |
reduction |
Which dimensionality reduction to use, must be based on MCA. |
features |
Character vector of feature names to subset feature coordinates. If not specified will take all features available from specified reduction Loadings. |
dims |
A vector of integers indicating which dimensions to use with reduction embeddings and loadings for distance calculation. |
reduction.name |
name of the created dimensionlaity reduction, default set to "mca" for Seurat and "MCA" for SCE. |
... |
other arguments passed to methods or DiffusionMap |
assay |
Seurat Asssay slot name. |
Seurat or SingleCellExperiment object with MCDMAP stored in the reduction slot
seuratPbmc <- RunMCA(seuratPbmc, nmcs = 5)
seuratPbmc <- RunMCDMAP(seuratPbmc, dims = seq(5), k = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.