
Constructs an interactive network for exploring spatial metabolomics and transcriptomics data.
Source:R/PathwayNetworks.R
PathwayNetworkPlots.RdConstructs an interactive network for exploring spatial metabolomics and transcriptomics data.
Arguments
- SpaMTP
A
SpaMTPSeurat object containing spatial metabolomics (SM) and/or spatial transcriptomics (ST) data. If SM data is included, it must be annotated using theSpaMTP::AnnotateSM()function.- ident
A character string specifying the cluster identifier used to group regions, corresponding to a column name in the
SpaMTP@meta.dataslot.- regpathway
A dataframe output from the
SpaMTP::FindRegionalPathways()function, containing identified regional pathways.- DE.list
A list containing differential expression results from the
FindAllMarkers()function, with items matching the order of theanalyte_typesargument.- selected_pathways
A character vector specifying the names or IDs of pathways used to construct the network (e.g.,
c("Amino acid metabolism", "WP1902", "Aspartate and asparagine metabolism")). This argument is not case-sensitive.- path
The directory to save the output. If not provided, the default is the current working directory.
- SM_slot
The slot name containing the spatial metabolomics assay matrix (default:
"counts").- ST_slot
The slot name containing the spatial transcriptomics assay matrix (default:
"counts").- colour_palette
The color palette used to plot the spatial image in the output HTML file. Default:
grDevices::colorRampPalette(rev(RColorBrewer::brewer.pal(11, "Spectral")))(100).- SM_assay
A character string specifying the assay name for spatial metabolomics data in
SpaMTPto extract intensity values (default:"SPM").- ST_assay
A character string specifying the assay name for spatial transcriptomics data in
SpaMTPto extract RNA count values (default:"SPT").- analyte_types
A subset of
c("genes", "metabolites"). Can bec("genes"),c("metabolites"), or both.- image
Character string specifying which image stored within the SpaMTP object to use for plotting (default = "slice1").
- verbose
A logical value indicating whether to display detailed messages during execution (default:
FALSE).