Welcome to MetaChat’s documentation!
MetaChat is a Python package to screen metabolic cell communication (MCC) from spatial multi-omics data of transcriptomics and metabolomics. It contains many intuitive visualization and downstream analysis tools, provides a great practical toolbox for biomedical researchers.
Metabolic cell communication
Metabolic cell-cell communication (MCC) occurs when sensor proteins in the receiver cells detect metabolites in their environment, activating intracellular signaling events. There are three major potential sensors of metabolites: surface receptors, nuclear receptors, and transporters. Metabolites secreted from cells are either transported over short-range distances (a few cells) via diffusion through extracellular space, or over long-range distances via the bloodstream and the cerebrospinal fluid (CSF).
MetaChatDB
MetaChatDB is a literature-supported database for metabolite-sensor interactions for both human and mouse. All the metabolite-sensor interactions are reported based on peer-reviewed publications. Specifically, we manually build MetaChatDB by integrating three high-quality databases (PDB, HMDB, UniProt) that are being continually updated.
New
Oct 24, 2025: We released MetaChat version 0.0.6. This version updated lots of functions in MetaChat.
Jun 26, 2024: We released MetaChat version 0.0.2. This version standardizes function names and fixes some bugs.
MetaChat’s features
MetaChat uses a Flow Optimal Transport algorithm, which frames MCC inference as an optimal transport problem from metabolite distributions to sensor distributions that are constrained by metabolite transport flow conditions. This algorithm simultaneously considers short-range and long-range transport of metabolites, as well as species competition between metabolites and sensors.
MetaChat explicitly incorporates anatomical barrier constraints, allowing metabolite communication to be modelled under realistic tissue boundaries that restrict diffusion or transport across certain regions.
MetaChat supports both 2D and 3D spatial data, enabling the inference and visualization of metabolite-mediated communication flows in volumetric tissue contexts.
MetaChat has multiple visualization and downstream analysis tools to dissect MCC flow directions, multiple levels of MCC aggregation, pairwise MCC pathway patterns between cell groups, and MCC remodelling in receiver cells.
The method can flexibly be applied to either spatial multi-omics measurements on either the same or multiple tissue slices, or, in combination with flux analysis, spatial transcriptomics alone of varying spatial resolution (single-cell or spot-level), meaning that vast amounts of existing data can be analyzed immediately for MCC.
Reference
Luo S., Almet A.A., Zhao W., He C., Tsai Y.-C., Ozaki H., Sugita B.K., Du K., Shen X., Cao Y., Yang Q., Watanabe M., Nie Q.* Spatial metabolic communication flow of cells.
Contents:
- Installation
- Basic tutorials
- Real dataset tutorials
- API
- Preprocessing: pp
- metachat.pp.MetaChatDB
- metachat.pp.generate_adata_met_compass
- metachat.pp.generate_adata_met_scFEA
- metachat.pp.generate_adata_met_mebocost
- metachat.pp.global_intensity_scaling
- metachat.pp.load_barrier_segments
- metachat.pp.LRC_unfiltered
- metachat.pp.LRC_cluster
- metachat.pp.LRC_filtered
- metachat.pp.compute_costDistance
- Tools: tl
- metachat.tl.metabolic_communication
- metachat.tl.summary_communication
- metachat.tl.communication_flow
- metachat.tl.communication_group
- metachat.tl.communication_group_spatial
- metachat.tl.summary_pathway
- metachat.tl.communication_responseGenes
- metachat.tl.communication_responseGenes_cluster
- metachat.tl.communication_responseGenes_keggEnrich
- metachat.tl.compute_direction_histogram_per_pair
- Plotting: pl
- metachat.pl.plot_communication_flow
- metachat.pl.plot_group_communication_chord
- metachat.pl.plot_group_communication_heatmap
- metachat.pl.plot_group_communication_compare_hierarchy_diagram
- metachat.pl.plot_MSpair_contribute_group
- metachat.pl.plot_summary_pathway
- metachat.pl.plot_metapathway_pair_contribution_bubbleplot
- metachat.pl.plot_communication_responseGenes
- metachat.pl.plot_communication_responseGenes_keggEnrich
- metachat.pl.plot_DEG_volcano
- metachat.pl.plot_3d_feature
- metachat.pl.plot_3d_LRC_with_two_slices
- metachat.pl.plot_dis_thr
- metachat.pl.plot_LRC_markers
- metachat.pl.plot_spot_distance
- metachat.pl.plot_graph_connectivity
- metachat.pl.plot_direction_similarity
- Preprocessing: pp