Learn R Programming

scGate (version 1.7.0)

plot_levels: Plot scGate filtering results by level

Description

Fast plotting of gating results over each model level.

Usage

plot_levels(obj, pure.col = "green", impure.col = "gray")

Value

UMAP plots with 'Pure'/'Impure' labels for each level of the scGate model

Arguments

obj

Gated Seurat object output of scGate filtering function

pure.col

Color code for pure category

impure.col

Color code for impure category

Examples

Run this code
# \donttest{
scGate.model.db <- get_scGateDB()
model <- scGate.model.db$human$generic$Myeloid
# Apply scGate with this model
data(query.seurat)
query.seurat <- scGate(query.seurat, model=model,
    reduction="pca", save.levels=TRUE)
library(patchwork)     
pll <- plot_levels(query.seurat)
wrap_plots(pll)
# }

Run the code above in your browser using DataLab