PlotValues.Gene.Pseudobulk.10x: Boxplot of pseudo-bulk PSI values vs cell groups

View source: R/Script_DROPLET_08_ADHOC_PLOT_BOXPLOT_2_PlotValues_PseudoBulk_Gene.R

PlotValues.Gene.Pseudobulk.10xR Documentation

Boxplot of pseudo-bulk PSI values vs cell groups

Description

Boxplot of pseudo-bulk PSI values on the y-axis against cell groups on the x-axis.

Usage

PlotValues.Gene.Pseudobulk.10x(
  MarvelObject,
  cell.group.list,
  gene_short_name,
  log2.transform = TRUE,
  cell.group.colors = NULL,
  xlabels.size = 10,
  min.n.cells.total = 10,
  method = "t.test",
  p.adjust.method = "fdr"
)

Arguments

MarvelObject

Marvel object. S3 object generated from CheckAlignment.10x function.

cell.group.list

List of character strings. Each element in the list (main list) is a list (sub-list). Each sub-list in turn is a list of pseudobulk samples represented by cell IDs. Each element in the main list is a cell group and the label of each element of the main list represents the cell group label.

gene_short_name

Character string. Name of gene to plot.

log2.transform

Logical value. If set to TRUE (default), normalised gene expression values will be off-set by 1 and then log2-transformed prior to plotting.

cell.group.colors

Vector of character strings. Colors of cell groups and should be same length as cell.group.list. Default ggplot2 colors are used.

xlabels.size

Numeric value. Font size of x-tick labels. Default is 10.

min.n.cells.total

Numeric value. Minimum number of cells in a pseudobulk, below which, the pseudobulk will be omitted from plotting. Default is 10.

method

Character string. Statistical test for all possible pair-wise comparisons. Options are "t.test" (default) or "wilcox".

p.adjust.method

Character string. Method for multiple testing adjustment as per method option of p.adjust function. Default is "fdr".

Value

An object of class S3 with new slots MarvelObject$adhocPlot$Boxplot$Pseudobulk$Gene$Plot, MarvelObject$adhocPlot$Boxplot$Pseudobulk$Gene$Stats, and MarvelObject$adhocPlot$Boxplot$Pseudobulk$Gene$Data.


wenweixiong/MARVEL documentation built on Aug. 5, 2024, 2:54 p.m.