CollapseEmbeddingOutliers: Move outliers towards center on dimension reduction plot

Description Usage Arguments Value Examples

View source: R/visualization.R

Description

Move outliers towards center on dimension reduction plot

Usage

1
2
3
4
5
6
7
8
CollapseEmbeddingOutliers(
  object,
  reduction = "umap",
  dims = 1:2,
  group.by = "ident",
  outlier.sd = 2,
  reduction.key = "UMAP_"
)

Arguments

object

Seurat object

reduction

Name of DimReduc to adjust

dims

Dimensions to visualize

group.by

Group (color) cells in different ways (for example, orig.ident)

outlier.sd

Controls the outlier distance

reduction.key

Key for DimReduc that is returned

Value

Returns a DimReduc object with the modified embeddings

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
pbmc_small <- FindClusters(pbmc_small, resolution = 1.1)
pbmc_small <- RunUMAP(pbmc_small, dims = 1:5)
DimPlot(pbmc_small, reduction = "umap")
pbmc_small[["umap_new"]] <- CollapseEmbeddingOutliers(pbmc_small,
    reduction = "umap", reduction.key = 'umap_', outlier.sd = 0.5)
DimPlot(pbmc_small, reduction = "umap_new")

## End(Not run)

Seurat documentation built on Jan. 13, 2021, 7:11 p.m.