agentsclimarketplace

Peak intensity distribution analysis

Skill HolobiomicsLab/asb-skill-collections/collections/metabolomics/v1/skills/peak-intensity-distribution-analysis

Use when after executing feature detection and quantification on raw LC-MS data (mzML or NetCDF format) using an automated pipeline such as MetaboAnalystR 4.0, and before proceeding to downstream normalization, scaling, or functional analysis.From its SKILL.md

Install
npx -y skills add HolobiomicsLab/asb-skill-collections --skill peak-intensity-distribution-analysis

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 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

7.4 KB, ~1.4k tokens by cl100k_base, as published. Nobody here has run it

peak-intensity-distribution-analysis

Summary

Computation and statistical characterization of mass spectrometry peak intensity values across LC-MS feature tables to quantify detection sensitivity, data quality, and feature abundance distributions. Essential for validating feature detection output and assessing the dynamic range and noise profile of metabolomics datasets.

When to use

After executing feature detection and quantification on raw LC-MS data (mzML or NetCDF format) using an automated pipeline such as MetaboAnalystR 4.0, and before proceeding to downstream normalization, scaling, or functional analysis. Apply this skill when you need to characterize the shape, spread, and outliers in peak intensities to justify preprocessing decisions (e.g., missing value imputation thresholds, log transformation, outlier removal).

When NOT to use

  • Input is already a normalized or log-transformed feature table with intensity statistics already computed and validated.
  • Analysis goal is compound identification or functional pathway inference; use this skill for data quality control, not for biological interpretation.
  • Raw spectra have not yet been processed into a feature table (i.e., peak picking and alignment have not been performed).

Inputs

  • Feature intensity matrix from MetaboAnalystR 4.0 LC-MS unified workflow (rows = features, columns = samples, values = peak intensity or area)
  • Raw LC-MS data in mzML or NetCDF format (optional, if re-extracting intensities)

Outputs

  • Summary statistics table (mean, median, SD, min, max intensity per feature or globally)
  • Intensity distribution histogram or density plot
  • Feature-level coefficient of variation (CV) table
  • Outlier flagging report (samples or features with extreme intensity values)
  • Diagnostic plots (boxplot, quantile–quantile plot) for assessing normality and transformation needs

How to apply

Extract the feature intensity matrix (rows = detected features, columns = samples) from the MetaboAnalystR 4.0 LC-MS workflow output. Compute univariate summary statistics for all peak intensity values: mean, median, standard deviation, minimum, and maximum. Generate a histogram or density plot to visualize the distribution shape (e.g., right-skewed, bimodal, or log-normal). Check for extreme outliers using boxplots or z-score thresholding (typically |z| > 3). Document the intensity range (min–max) and coefficient of variation (CV = SD / mean) per feature to assess replicate consistency. These diagnostics inform whether log-transformation, quantile normalization, or robust scaling is appropriate before statistical analysis.

Related tools

  • MetaboAnalystR 4.0 (Performs automated LC-MS feature detection, quantification, and generates the feature intensity matrix that serves as input to peak-intensity distribution analysis.) — https://github.com/xia-lab/MetaboAnalystR

Examples

# After loading a feature intensity matrix from MetaboAnalystR 4.0:
feature_stats <- data.frame(
  mean_intensity = colMeans(intensity_matrix),
  median_intensity = apply(intensity_matrix, 2, median),
  sd_intensity = apply(intensity_matrix, 2, sd),
  min_intensity = apply(intensity_matrix, 2, min),
  max_intensity = apply(intensity_matrix, 2, max),
  cv = apply(intensity_matrix, 2, sd) / colMeans(intensity_matrix)
)
hist(log10(colMeans(intensity_matrix)), breaks=50, main='Peak Intensity Distribution (log10 scale)')

Evaluation signals

  • Feature table dimensions are correctly extracted: number of rows matches number of detected features, number of columns matches number of samples.
  • Summary statistics (mean, median, SD, min, max) are mathematically consistent and within expected ranges for the instrument and sample type (e.g., no negative intensities, min < median < mean for right-skewed distributions).
  • Intensity distribution visualization shows expected shape (typically right-skewed for LC-MS peak areas); bimodal or severely multimodal distributions warrant investigation of batch effects or data quality issues.
  • Coefficient of variation across replicates is reasonable (typically 10–30% for high-quality LC-MS metabolomics data); CV > 50% flags features with poor reproducibility.
  • Outlier detection is reproducible and justified: documented criteria (e.g., z-score > 3, interquartile range * 1.5) are applied consistently, and flagged outliers are visually confirmed in boxplots.

Limitations

  • Summary statistics alone do not distinguish between true biological variation and technical noise; validation against blank/QC samples is needed.
  • Peak intensity distributions are highly dependent on sample preparation, ionization efficiency, and instrumental parameters; direct comparison across different LC-MS platforms or methods is not valid without normalization.
  • Extreme outliers may reflect authentic features (e.g., isotopologue peaks, adducts) or instrumental artifacts; statistical flagging alone does not determine biological relevance.
  • The README states that MetaboAnalystR 4.0 demonstrates improved quantification accuracy and > 10% higher feature detection versus prior versions, but individual dataset results depend on parameter tuning and data quality; no universal thresholds for acceptable intensity ranges are provided.

Evidence

  • [other] Extract feature table dimensions (number of rows as features, number of columns as samples) and compute summary statistics on peak intensity values (mean, median, standard deviation, min, max).: "Extract feature table dimensions (number of rows as features, number of columns as samples) and compute summary statistics on peak intensity values (mean, median, standard deviation, min, max)."
  • [readme] MetaboAnalystR 4.0 contains the R functions and libraries underlying the popular MetaboAnalyst web server, including metabolomic data analysis, visualization, and functional interpretation.: "MetaboAnalystR 4.0 contains the R functions and libraries underlying the popular MetaboAnalyst web server, including metabolomic data analysis, visualization, and functional interpretation."
  • [readme] an auto-optimized feature detection and quantification module for LC-MS1 spectra processing: "an auto-optimized feature detection and quantification module for LC-MS1 spectra processing"
  • [readme] Serial dilutions demonstrate that MetaboAnalystR 4.0 can accurately detect and identify > 10% more high-quality MS and MS/MS features.: "Serial dilutions demonstrate that MetaboAnalystR 4.0 can accurately detect and identify > 10% more high-quality MS and MS/MS features."

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,871. 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.