
Plot significantly enriched pathways per region
Source:R/PathwayVisualisation.R
PlotRegionalPathways.Rd
Visualisation of Set Enrichment Analysis Results from SpaMTP::FindRegionalPathways()
.
Usage
PlotRegionalPathways(
regpathway,
ident.column = "Cluster_id",
selected_pathways = NULL,
sig_cutoff = NULL,
num_display = NULL,
text_size = NULL,
verbose = TRUE
)
Arguments
- regpathway
A dataframe generated by the
SpaMTP::FindRegionalPathways()
function, containing identified regional pathways.- ident.column
A character string specifying the column name of the
regpathway
dataframe containing the idents or clusters to compare (default = "Cluster_id").- selected_pathways
A character vector specifying the names or IDs of pathways to be included in the analysis (e.g.,
c("Amino acid metabolism", "WP1902", "Aspartate and asparagine metabolism")
). This argument is not case-sensitive (default = NULL).- sig_cutoff
A numeric value defining the p-value cutoff for classifying significant pathways. If NULL the p-value cutoff will be = 0.05 (default = NULL).
- num_display
An integer specifying the number of pathways to display in the plot. If set to null will plot the smaller of either 10 pathways or the number of unique pathways provided in 'regpathway' (default = NULL).
- text_size
A numeric value controlling the size of the text elements in the plot. If NULL the default text size is 12 (default = NULL).
- verbose
Boolean indicating whether to show the message. If TRUE the message will be show, else the message will be suppressed (default = TRUE).