agentsclimarketplace

Multivariate statistical analysis metabolomics

Skill HolobiomicsLab/asb-skill-collections/packs/metabolomics/lc-ms/skills/multivariate-statistical-analysis-metabolomics

Curated, evidence-grounded skill and software-tool collections for scientific AI agents, generated by the AgenticScienceBuilder

Install
npx -y skills add HolobiomicsLab/asb-skill-collections --skill multivariate-statistical-analysis-metabolomics

Assembled 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 author says it does

Copied from the file, not written here

Use when when you have preprocessed non-targeted LC-MS/MS feature tables (post-merging, cleanup, blank removal, and batch correction) and seek to uncover multivariate patterns across samples, discriminate between experimental groups, or reduce dimensionality of high-dimensional metabolomic data.

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

7.9 KB, as published. Nobody here has run it

Multivariate Statistical Analysis of Feature-Based Molecular Networks from Non-Targeted Metabolomics

Summary

Apply multivariate statistical analysis methods (e.g., PCA, PLS-DA, clustering) to feature tables derived from non-targeted LC-MS/MS data to identify patterns, classify samples, and associate metabolomic signatures with experimental conditions or phenotypes in feature-based molecular networks.

When to use

When you have preprocessed non-targeted LC-MS/MS feature tables (post-merging, cleanup, blank removal, and batch correction) and seek to uncover multivariate patterns across samples, discriminate between experimental groups, or reduce dimensionality of high-dimensional metabolomic data before downstream interpretation.

When NOT to use

  • Input feature table has not undergone data cleanup, blank removal, or batch correction; apply those preprocessing steps first.
  • Sample size is extremely small (n < 3 per group); multivariate methods may overfit or lack statistical power.
  • Feature table contains raw, non-log-transformed abundances without appropriate normalization; preprocessing must precede multivariate analysis.

Inputs

  • Preprocessed feature table (TSV, CSV, or Excel format) with features as columns and samples as rows
  • Sample metadata or design matrix indicating experimental groups or conditions
  • Cleaned, batch-corrected LC-MS/MS feature abundance data

Outputs

  • PCA scores and loadings plots
  • PLS-DA classification model and predictions
  • Heatmaps of clustered features and samples
  • Statistical summary tables (e.g., model performance, feature contributions)
  • R objects (.RData) or Python pickled objects for downstream analysis

How to apply

Load the cleaned and batch-corrected feature table (typically in tabular format with features as columns and samples as rows) into a Jupyter Notebook environment (R or Python) from the FBMN-STATS repository. Execute the multivariate statistical analysis notebook, which automates data scaling, dimensionality reduction (PCA), supervised classification (PLS-DA), and clustering. The notebook applies standard preprocessing steps (e.g., log transformation, normalization) and generates publication-ready visualizations (scores plots, loadings, heatmaps) and statistical outputs (model performance metrics). Verify that all cells run without errors and that output files are generated in the working directory.

Related tools

Evaluation signals

  • All notebook cells execute without errors and complete in reasonable time (<30 min for test datasets MSV000082312 or MSV000085786).
  • Output files (plots, tables, model objects) are generated in the working directory and match the structure and content of reference files in the associated Google Drive.
  • PCA scores plot shows clear separation or clustering consistent with experimental design; PLS-DA model shows non-trivial cross-validation accuracy (>60% for multi-class, >70% for binary).
  • Generated visualizations (heatmaps, loadings plots) are readable and reproducible across independent runs with the same input data.
  • Dimensions of output matrices and feature contributions are consistent with input feature table dimensions (e.g., loadings matrix = features × n_components).

Limitations

  • Google Colab runtime automatically disconnects after 90 minutes of idleness or 12 hours of continuous use, requiring notebook re-execution and redownload of results.
  • Colab disk space is limited to 77 GB, which may constrain analysis of very large datasets or high-dimensional feature tables.
  • Quickstart GNPS (older version) does not generate reformatted output compatible with the notebook; users must use GNPS 2 to ensure correct feature table format.
  • When copying notebook code to other environments (e.g., RStudio), GitHub rendering limitations may affect symbol transfer; use Google Colab or locally opened Jupyter for accurate code transfer.
  • Package installation in Colab must be performed every session (unlike local Jupyter), which adds runtime overhead.

Evidence

  • [readme] perform data merging, data cleanup, blank removal, batch correction, and univariate and multivariate statistical analyses on their non-targeted LC-MS/MS data: "perform data merging, data cleanup, blank removal, batch correction, and univariate and multivariate statistical analyses on their non-targeted LC-MS/MS data"
  • [other] Open and execute the multivariate statistical analysis notebook in Jupyter, ensuring all cells run without errors.: "Open and execute the multivariate statistical analysis notebook in Jupyter, ensuring all cells run without errors."
  • [other] Verify that all expected output files are generated and match the reported results stored in the project Google Drive.: "Verify that all expected output files are generated and match the reported results stored in the project Google Drive."
  • [readme] Since Colab does not come pre-installed with R packages (or libraries) when running our R Notebook in Colab, we need to install the packages every time we run the notebook: "Since Colab does not come pre-installed with R packages (or libraries) when running our R Notebook in Colab, we need to install the packages every time we run the notebook"
  • [readme] Although Colab is easier to use and is all Cloud-based, the main problem with the Colab environment is when you leave the Colab notebook idle for 90 mins or continuously used it for 12 hours, the runtime will automatically disconnect.: "when you leave the Colab notebook idle for 90 mins or continuously used it for 12 hours, the runtime will automatically disconnect"
  • [readme] We advise Quickstart GNPS users to switch to the latest GNPS 2 for FBMN-STATS and accessing the Notebooks. The previous version of Quickstart GNPS does not generate the reformatted output needed for Notebook/Web app integration: "The previous version of Quickstart GNPS does not generate the reformatted output needed for Notebook/Web app integration"

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.