plot_percent_active_feature_scExp: Barplot of the % of active cells for a given features

View source: R/plotting_functions.R

plot_percent_active_feature_scExpR Documentation

Barplot of the % of active cells for a given features

Description

Barplot of the % of active cells for a given features

Usage

plot_percent_active_feature_scExp(
  scExp,
  gene,
  by = c("cell_cluster", "sample_id")[1],
  highlight = NULL,
  downsample = 5000,
  max_distanceToTSS = 1000
)

Arguments

scExp

A SingleCellExperiment

gene

A character specifying the gene to plot

by

Color violin by cell_cluster or sample_id ("cell_cluster")

highlight

A specific group to highlight in a one vs all fashion

downsample

Downsample for plotting (5000)

max_distanceToTSS

Numeric. Maximum distance to a gene's TSS to consider a region linked to a gene. (1000)

Value

A violin plot of intra-correlation

Examples

data(scExp)
plot_percent_active_feature_scExp(scExp, "UBXN10")


vallotlab/ChromSCape documentation built on Oct. 15, 2023, 1:47 p.m.