library(Seurat)
# Creating example non-overlapping vectors of cells
MS4A1 <- WhichCells(object = pbmc_small, expression = MS4A1 > 4)
GZMB <- WhichCells(object = pbmc_small, expression = GZMB > 4)
# Format as named list
cells <- list("MS4A1" = MS4A1,
"GZMB" = GZMB)
Cell_Highlight_Plot(seurat_object = pbmc_small, cells_highlight = cells)
Run the code above in your browser using DataLab