Function to plot perturbation score distributions.
Density plots to visualize perturbation scores calculated from RunMixscape function.
PlotPerturbScore( object, target.gene.ident = NULL, group.by = "mixscape_class", col = "orange2", prtb.type = "KO" )
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. |
A ggplot object.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.