get_callouts_annot: Get gene callout annotations for a loadings heatmap

View source: R/plot_tucker.R

get_callouts_annotR Documentation

Get gene callout annotations for a loadings heatmap

Description

Get gene callout annotations for a loadings heatmap

Usage

get_callouts_annot(
  container,
  tmp_casted_num,
  factor_select,
  sig_thresh,
  top_n_per_ctype = 5,
  ctypes = NULL
)

Arguments

container

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

tmp_casted_num

matrix The gene by cell type loadings matrix

factor_select

numeric The factor to investigate

sig_thresh

numeric Pvalue cutoff for significant genes

top_n_per_ctype

numeric The number of significant, largest magnitude genes from each cell type to generate callouts for (default=5)

ctypes

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

Value

A HeatmapAnnotation object for the gene callouts.


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