View source: R/Seurat.utils.less.used.R
AutoNumber.by.PrinCurve | R Documentation |
Relabel cluster numbers along the principal curve of 2 UMAP (or tSNE) dimensions. #
AutoNumber.by.PrinCurve(
obj = combined.obj,
dim = 1:2,
plotit = TRUE,
swap = -1,
reduction = "umap",
res = "integrated_snn_res.0.5"
)
obj |
Seurat object, Default: combined.obj |
dim |
Dimensions to use, Default: 1:2 |
plotit |
Plot results (& show it), Default: |
swap |
Swap Lambda paramter (multiplied with this) , Default: -1 |
reduction |
UMAP, tSNE, or PCA (Dim. reduction to use), Default: 'umap' |
res |
Clustering resoluton to use, Default: 'integrated_snn_res.0.5' |
principal_curve
## Not run:
if (interactive()) {
DimPlot.ClusterNames(ident = "integrated_snn_res.0.5")
combined.obj <- AutoNumber.by.PrinCurve(
obj = combined.obj, dim = 1:2, reduction = "umap", plotit = TRUE,
swap = -1, res = "integrated_snn_res.0.5"
)
DimPlot.ClusterNames(ident = "integrated_snn_res.0.5.prin.curve")
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.