Metabolomics data downstream analysis
Use when you have deposited spatio-molecular matrices (e.g., MORPHnMOL.csv from SpaceM analysis) and need to reproduce or extend the data transformations, feature extractions, and figure generation reported in a metabolomics manuscript.From its SKILL.md
npx -y skills add HolobiomicsLab/asb-skill-collections --skill metabolomics-data-downstream-analysisAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 14 stars14 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its file declares
Copied from the file, not written here
The file declares its own license as CC-BY-4.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
8.2 KB, ~1.4k tokens by cl100k_base, as published. Nobody here has run it
metabolomics-data-downstream-analysis
Summary
Downstream processing of spatio-molecular matrices from single-cell metabolomics to extract features, transform data, and generate publication-quality visualizations that replicate manuscript figures. This skill bridges raw MALDI-imaging mass spectrometry and microscopy outputs into interpretable cell-level metabolic profiles.
When to use
You have deposited spatio-molecular matrices (e.g., MORPHnMOL.csv from SpaceM analysis) and need to reproduce or extend the data transformations, feature extractions, and figure generation reported in a metabolomics manuscript. Use this skill when you want to validate the reproducibility of published results or apply the same visualization pipeline to new spatio-molecular data.
When NOT to use
- Input data is raw MALDI-imaging mass spectrometry files (.RAW, .imzML) or microscopy tiles — use SpaceM upstream processing (cell segmentation, ablation mark detection, image stitching) first to generate spatio-molecular matrices.
- Goal is method development or algorithm optimization — this skill applies a fixed, published pipeline; it is not designed for parameter tuning or novel method exploration.
- Data lacks spatial context or cell-level segmentation — the skill requires pre-segmented cell identities linked to both morphological features and molecular measurements.
Inputs
- Spatio-molecular matrix (CSV format, rows=cells, columns=morphological + metabolite features)
- Deposited dataset from MetaboLights repository (e.g., reviewer ID or DOI)
- Google Colab notebook URL or local Python 3 environment with dependencies installed
Outputs
- Processed data tables (CSV) with transformed features and aggregated statistics
- Publication-quality figures (PNG, PDF) replicating manuscript plots
- Intermediate feature matrices (e.g., PCA loadings, clustering assignments)
How to apply
Load the spatio-molecular matrix (CSV format containing morphological and molecular features indexed by cell ID) into a Python 3 environment via Google Colab or local Jupyter notebook. Execute the downstream processing pipeline sequentially: (1) import and validate the matrix structure; (2) apply data transformations (e.g., normalization, scaling, or log transformation as specified in the notebook); (3) perform feature extraction and dimensionality reduction steps (e.g., PCA, clustering); (4) generate publication-quality figures through matplotlib/seaborn visualization routines that map metabolic and morphological features to spatial or statistical plots. The notebook cells are designed to be run in order, with intermediate outputs (processed tables, feature matrices, figures) saved at each step. Verify correctness by comparing generated figures against the published manuscript figures pixel-by-pixel or by checking that output dimensions and summary statistics match expected values.
Related tools
- Google Colab (Interactive notebook environment for running Python 3 downstream processing pipeline with pre-installed dependencies and cloud storage integration) — https://colab.research.google.com/
- Python 3 (Programming language for data transformation, feature extraction, and visualization routines in the downstream processing pipeline)
- CellProfiler 3.0.0 (Upstream image segmentation tool (not directly used in this skill but required to generate input spatio-molecular matrices)) — https://cellprofiler.org/previous_releases/
- Fiji (Upstream image registration and preprocessing tool (not directly used in this skill but required to generate input spatio-molecular matrices)) — https://imagej.net/Fiji/Downloads
Examples
# In Google Colab: open notebook at https://colab.research.google.com/drive/1CKdHDUkGIpAcBzrSfuCodMF_l2xbVAKT?usp=sharing, download MORPHnMOL.csv from MetaboLights reviewer417760fcbfbb6076b4ce5bd9a7e7c893, upload to Colab, then execute cells sequentially to generate and display figures.
Evaluation signals
- All output figures visually match published manuscript figures in layout, color scheme, and data representation.
- Output CSV files contain expected number of rows (cells) and columns (morphological + metabolite features) with no missing values in key columns.
- Summary statistics (mean, median, standard deviation of key features) fall within documented ranges or match values reported in manuscript tables.
- Notebook executes without errors or warnings when cells are run sequentially, indicating data schema and dependency compatibility.
- Intermediate outputs (e.g., PCA variance explained, clustering silhouette scores) align with values reported in manuscript methods or supplementary materials.
Limitations
- Pipeline is optimized for the specific SpaceM output format (MORPHnMOL.csv); adaptation required if input matrix structure or column names differ.
- Reproducibility depends on matching Python package versions specified in requirements.txt; environment drift or newer package versions may alter numerical outputs or visualizations slightly.
- Google Colab execution may fail or be slow if the spatio-molecular matrix exceeds available RAM; local installation may be necessary for very large datasets.
- Figure generation relies on exact parameter values (e.g., colormap, marker size, axis limits) hardcoded in the notebook; customization requires manual notebook editing.
- No interactive validation or error recovery built into the pipeline; silent failures in intermediate steps may propagate to final figures without alerting the user.
Evidence
- [intro] the downstream processing of the spatio-molecular matrices provided by SpaceM: "the downstream processing of the spatio-molecular matrices provided by SpaceM"
- [other] downstream processing pipeline including data transformation, feature extraction, and visualization steps: "Execute all notebook cells sequentially, running the downstream processing pipeline including data transformation, feature extraction, and visualization steps."
- [other] replicates all main figures of the manuscript: "The Google Colab notebook interactively presents downstream processing of spatio-molecular matrices provided by SpaceM and replicates all main figures of the manuscript."
- [other] Download the deposited spatio-molecular matrices: "Access the MetaboLights repository (reviewer417760fcbfbb6076b4ce5bd9a7e7c893) and download the deposited SpaceM spatio-molecular matrices."
- [readme] The final spatio-molecular matrix will be stored as MORPHnMOL.csv: "The final spatio-molecular matrix will be stored as
MORPHnMOL.csvand can be found inside thescAnalysissub-folder." - [readme] we present interactively using Google Collab the downstream processing: "we present interactively using Google Collab the downstream processing of the spatio-molecular matrices"
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.