plot_donor_sig_genes: Generate a gene by donor heatmap showing scaled expression of...

View source: R/plot_tucker.R

plot_donor_sig_genesR Documentation

Generate a gene by donor heatmap showing scaled expression of top loading genes for a given factor

Description

Generate a gene by donor heatmap showing scaled expression of top loading genes for a given factor

Usage

plot_donor_sig_genes(
  container,
  factor_select,
  top_n_per_ctype,
  ctypes_use = NULL,
  show_donor_labels = FALSE,
  additional_meta = NULL,
  add_genes = NULL
)

Arguments

container

environment Project container that stores sub-containers for each cell type as well as results and plots from all analyses

factor_select

numeric The factor to query

top_n_per_ctype

numeric Vector of the number of top genes from each cell type to plot

ctypes_use

character The cell types for which to get the top genes to make callouts for. If NULL then uses all cell types. (default=NULL)

show_donor_labels

logical Set to TRUE to display donor labels (default=FALSE)

additional_meta

character Another meta variable to plot (default=NULL)

add_genes

character Additional genes to plot for all ctypes (default=NULL)

Value

The project container with a heatmap plot in the slot container$plots$donor_sig_genes$<Factor#>. This heatmap shows scaled expression of top loading genes in each cell type for a selected factor.

Examples

test_container <- plot_donor_sig_genes(test_container, factor_select=1,
top_n_per_ctype=2)

scITD documentation built on Sept. 8, 2023, 5:11 p.m.