Skip to contents

This function generates a plot for enrichment analysis of Canopus-predicted terms, showing fold enrichment, p-value, and subset count for each term level.

Usage

CanopusListEnrichmentPlot(
  mmo,
  feature_list,
  pthr = 0.05,
  outdir,
  height = 5,
  width = 5
)

Arguments

mmo

The mmo object with sirius annotation and normalized data

feature_list

A vector containing names of features to analyze

pthr

The threshold for adjusted p-value to be considered significant (default: 0.05)

outdir

The output file path for the enrichment plot

height

The height of the output plot in inches (default: 5)

width

The width of the output plot in inches (default: 5)

Examples

if (FALSE) {
CanopusListEnrichmentPlot(
 mmo, feature_list = DAMs_up$control_vs_treatment1.up, 
 pthr = 0.05, outdir = 'canopus_enrichment_plot.pdf', 
 height = 5, width = 5
)
}