Metabolite feature matching across datasets
Use when you have two independent LC-MS untargeted metabolomic feature tables (e.From its SKILL.md
npx -y skills add HolobiomicsLab/asb-skill-collections --skill metabolite-feature-matching-across-datasetsAssembled 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
5.6 KB, ~1.0k tokens by cl100k_base, as published. Nobody here has run it
metabolite-feature-matching-across-datasets
Summary
Match untargeted metabolomic features across two LC-MS datasets by comparing retention time and mass-to-charge ratio signatures using the M2S Matlab package. This skill enables researchers to identify and link corresponding metabolite features between independent LC-MS runs, producing a consolidated feature correspondence table with matching scores.
When to use
You have two independent LC-MS untargeted metabolomic feature tables (e.g., from different instruments, sample batches, or experimental replicates) and need to establish feature correspondence across them to enable comparative metabolomics analysis, multi-cohort integration, or validation of feature detection across runs.
When NOT to use
- Input data is already a pre-aligned or single feature table from a unified analysis pipeline (M2S is for cross-dataset matching, not within-dataset feature deconvolution)
- Features lack retention time or m/z information; M2S relies on these two dimensions for similarity computation
- You require targeted metabolite identification rather than untargeted feature correspondence (M2S matches features, not compound IDs or chemical structures)
Inputs
- LC-MS untargeted metabolomic feature table 1 (tabular: feature ID, retention time, m/z, intensity or abundance)
- LC-MS untargeted metabolomic feature table 2 (tabular: feature ID, retention time, m/z, intensity or abundance)
Outputs
- Matched feature table (tabular: feature pairs from dataset 1 and 2, matching scores, retention time deltas, m/z deltas)
How to apply
Load both feature datasets into Matlab, ensuring each contains retention time and mass-to-charge ratio (m/z) information for detected features. Initialize the M2S package with both feature tables as inputs. Execute the M2S matching algorithm, which identifies corresponding features by computing similarity scores based on retention time and m/z alignment (the algorithm uses these two dimensions as the primary matching criteria). The algorithm produces a matched feature table annotated with feature correspondences and matching scores, which can be exported for downstream analysis. Inspect the matching scores to assess confidence in correspondences and filter by a quality threshold appropriate to your analytical tolerance.
Related tools
- M2S (Matlab package that implements the matching algorithm for untargeted metabolomic features across two LC-MS datasets using retention time and m/z similarity) — https://github.com/rjdossan/M2S
- Matlab (Runtime and numerical computing environment required to execute M2S package and load/manipulate feature tables)
Evaluation signals
- Output matched feature table contains all expected columns: feature identifiers from both datasets, retention time and m/z for each feature, and a matching score (0–1 or similar scale)
- Matching scores are symmetric: if feature A from dataset 1 matches feature B from dataset 2 with score S, inspect whether the reverse correspondence is consistent
- No feature from one dataset is matched to multiple features in the other (one-to-one cardinality, or expected one-to-many is documented)
- Retention time and m/z deltas between matched features are within expected instrumental tolerance (e.g., <0.5 min RT, <5 ppm m/z, or user-specified thresholds)
- Matched feature count is non-zero and reasonable relative to total feature count in each input table (e.g., >50% if datasets are expected to be similar)
Limitations
- M2S matching relies solely on retention time and m/z; features with identical m/z but different chemical identity (isomers, adducts) may produce spurious matches if retention times are similar
- Matching performance depends on the accuracy of retention time calibration and mass calibration across the two LC-MS runs; systematic shifts or drift will reduce correspondence accuracy
- The algorithm and thresholds for retention time and m/z tolerance are not documented in the README; users must either infer defaults or consult source code or original publication
- No explicit handling of one-to-many or many-to-one feature correspondences (e.g., when dataset 2 resolves a single feature in dataset 1 into multiple peaks)
Evidence
- [other] M2S is a Matlab package designed to match untargeted metabolomic features of two LC-MS datasets: "Matlab package to match untargeted metabolomic features of two LC-MS datasets"
- [other] The workflow involves loading two feature datasets, initializing M2S, executing the matching algorithm based on retention time and m/z similarity, and exporting matched features with scores: "Execute the M2S matching algorithm to identify and link corresponding features across the two datasets based on retention time and mass-to-charge ratio similarity"
- [other] M2S produces a matched feature table as output: "Generate and export the matched feature table containing feature correspondences and matching scores"
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.