agentsclimarketplace

Metabolite feature normalization across batches

Skill HolobiomicsLab/asb-skill-collections/collections/metabolomics/v2/skills/metabolite-feature-normalization-across-batches

Use when after data merging and cleanup (blank removal) and before univariate or multivariate statistical analysis, when your merged feature table (samples as columns, metabolite features as rows) contains samples processed in different MS batches or instrumental runs that may introduce systematic.From its SKILL.md

Install
npx -y skills add HolobiomicsLab/asb-skill-collections --skill metabolite-feature-normalization-across-batches

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

  • 15 stars15 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.5 KB, ~1.2k tokens by cl100k_base, as published. Nobody here has run it

metabolite-feature-normalization-across-batches

Summary

Removes batch-associated technical variation from merged LC-MS/MS metabolomics feature tables while preserving biological signal, using statistical batch correction methods. This step is critical in the FBMN-STATS workflow to ensure fair downstream statistical comparisons when samples were processed across multiple instrumental runs or MS batches.

When to use

Apply this skill after data merging and cleanup (blank removal) and before univariate or multivariate statistical analysis, when your merged feature table (samples as columns, metabolite features as rows) contains samples processed in different MS batches or instrumental runs that may introduce systematic technical bias unrelated to your biological question.

When NOT to use

  • If your feature table has not yet been merged from individual sample files or has not undergone blank removal and cleanup.
  • If all samples were processed in a single batch with no known batch variable or instrumental heterogeneity.
  • If batch is confounded with your primary biological variable of interest (e.g., all diseased samples in batch 1, all healthy in batch 2), as batch correction may remove genuine biological signal.

Inputs

  • Merged metabolomics feature table (TSV or CSV: samples × features, with feature intensity or abundance values)
  • Experimental metadata table with batch identifier for each sample

Outputs

  • Batch-corrected feature table (TSV or CSV: samples × features, matching original input structure)
  • Quality control metrics or diagnostic plots showing batch effect removal

How to apply

Load the merged feature table (CSV or TSV format with samples as columns and features as rows) into R or Python alongside experimental metadata containing batch identifiers for each sample. Identify and flag which samples belong to each batch. Apply a batch correction method such as ComBat or SVA to normalize feature intensities across batches, removing batch-associated variance while preserving the biological signal of interest. The corrected feature table should maintain the original data structure (samples as columns, features as rows) and be exported to CSV/TSV for downstream statistical analysis. Rationale: batch effects are unintended systematic variation from instrumental drift, reagent lots, or run date differences; removing them ensures that observed differences in statistical analysis reflect true biological variation rather than technical artifacts.

Related tools

Evaluation signals

  • Batch identifiers are correctly mapped to all samples and no batch assignments are missing or misclassified.
  • Feature intensity distributions show reduced systematic differences between batches in PCA or distribution plots before and after correction.
  • Biological replicate samples cluster together after batch correction, while distinct biological groups remain separated.
  • Feature table maintains original dimensions (same number of samples and features) and no features or samples are inadvertently removed.
  • Corrected feature values remain within expected intensity ranges for metabolomics data and show no obvious artifacts (e.g., negative intensities if the original data were non-negative).

Limitations

  • Batch correction assumes that batch and biological effects are separable; severe confounding between batch and phenotype can lead to loss of biological signal.
  • Different batch correction methods (ComBat, SVA, etc.) may yield different results; method choice should be justified and validated via cross-validation or independent datasets.
  • Effectiveness depends on having sufficient samples per batch and adequate representation of biological variation within each batch; small, imbalanced batch designs may lead to overcorrection.
  • Batch correction is most reliable when batch information is known and accurately recorded in metadata; unknown or misclassified batches will reduce performance.

Evidence

  • [other] The FBMN-STATS workflow includes batch correction as a processing step applied to merged feature tables from non-targeted LC-MS/MS data, positioned after data merging and cleanup and before statistical analysis.: "The FBMN-STATS workflow includes batch correction as a processing step applied to merged feature tables from non-targeted LC-MS/MS data, positioned after data merging and cleanup and before"
  • [other] Load the merged feature table (with samples as columns and features as rows) into R or Python. Identify batch identifiers for each sample from the experimental metadata. Apply batch correction using an appropriate method (e.g., ComBat, SVA, or similar normalization technique) to remove batch effects while preserving biological signal.: "Load the merged feature table (with samples as columns and features as rows) into R or Python. Identify batch identifiers for each sample from the experimental metadata. Apply batch correction using"
  • [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 and Feature-based Molecular Networks."
  • [other] Export the batch-corrected feature table to a CSV or TSV file matching the original input structure.: "Export the batch-corrected feature table to a CSV or TSV file matching the original input structure."

What ships with it

Read from the repository

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

Keep looking

Skills are one crate of 325,949. 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.