plot_predictions_dimplot: Overlay predictions on a dimensional reduction plot

View source: R/plots.R

plot_predictions_dimplotR Documentation

Overlay predictions on a dimensional reduction plot

Description

This function generates a dimensional reduction plot with predictions overlayed on each cell.

Usage

plot_predictions_dimplot(
  scRNA_data,
  perturbation,
  group_by = NULL,
  reduction = "umap",
  pt_size = 0.25,
  show_labels = F,
  label_size = 3,
  dims = c(1, 2),
  fixed_color_scale = FALSE
)

Arguments

scRNA_data

A Seurat object with predictions appended (e.g. using append_predictions_to_seurat)

perturbation

The name of the perturbation whose predictions we want to plot.

reduction

The dimensionality reduction technique to show (default = 'umap')

dims

A 2-element vector with the dimensions to plot (default = c(1,2))

fixed_color_scale

Default = FALSE. If TRUE, the color scale will be fixed from 0 to 1.

Examples

plot_predictions_dimplot(my_seurat_obj, "ko_ctnnb1")

Mushriq/mixmap documentation built on Jan. 28, 2024, 7:22 p.m.