Learn R Programming

Seurat (version 4.0.1)

PlotPerturbScore: Function to plot perturbation score distributions.

Description

Density plots to visualize perturbation scores calculated from RunMixscape function.

Usage

PlotPerturbScore(
  object,
  target.gene.ident = NULL,
  group.by = "mixscape_class",
  col = "orange2",
  prtb.type = "KO"
)

Arguments

object

An object of class Seurat.

target.gene.ident

Class identity for cells sharing the same perturbation. Name should be the same as the one used to run mixscape.

group.by

Option to split densities based on mixscape classification. Default is set to NULL and plots cells by original class ID.

col

Specify color of target gene class or knockout cell class. For control non-targeting and non-perturbed cells, colors are set to different shades of grey.

prtb.type

specify type of CRISPR perturbation expected for labeling mixscape classifications. Default is KO.

Value

A ggplot object.