Retention time alignment
Skill HolobiomicsLab/asb-skill-collections/packs/metabolomics/lc-ms/skills/retention-time-alignment
Curated, evidence-grounded skill and software-tool collections for scientific AI agents, generated by the AgenticScienceBuilder
npx -y skills add HolobiomicsLab/asb-skill-collections --skill retention-time-alignmentAssembled 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 after peak detection in untargeted metabolomics when you have identified ion signals across mass-to-charge and retention-time dimensions from replicate injections of the same samples, and you need to group peaks from different runs that represent the same metabolite before building a.
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.4 KB, as published. Nobody here has run it
retention-time-alignment
Summary
Aligns retention time values across replicate LC-MS injections to consolidate peaks from the same analyte into unified features. This step is essential in untargeted metabolomics to correct for systematic retention time drift and enable accurate cross-sample intensity comparison.
When to use
Apply this skill after peak detection in untargeted metabolomics when you have identified ion signals across mass-to-charge and retention-time dimensions from replicate injections of the same samples, and you need to group peaks from different runs that represent the same metabolite before building a feature abundance matrix.
When NOT to use
- Input is already a feature table or intensity matrix — alignment has already been performed.
- Analysis uses targeted metabolomics with predetermined retention times — peaks are matched by identity, not alignment.
- Single-injection analysis — no replicates to align.
Inputs
- Peak list with m/z, retention time (RT), and intensity from replicate LC-MS injections
- Retention-time tolerance threshold (e.g., ±0.1–0.5 min, instrument and method dependent)
- Mass-to-charge (m/z) tolerance for grouping (e.g., 5 ppm)
Outputs
- Unified feature table with consolidated peaks across replicates
- Feature identifiers (m/z, standardized retention time, internal ID)
- Aligned feature list ready for intensity matrix construction
How to apply
Load peak detection output (peak list with m/z, retention time, and intensity for each detection) from replicate LC-MS injections. Apply retention-time alignment to correct for chromatographic drift between runs by matching peaks within a retention-time tolerance window and assigning them to unified feature identifiers. This is typically performed as part of peak alignment and feature grouping before intensity value extraction. The alignment consolidates redundant detections of the same ion across replicates into a single feature row, with retention time standardized (often as the mean or median across aligned peaks). Verify alignment quality by inspecting the distribution of retention-time differences within feature groups; poor alignment may indicate instrument instability or sample preparation issues.
Related tools
- openNAU (MetaQC module) (Performs peak detection, retention-time alignment, and feature grouping in untargeted metabolomics workflows) — https://github.com/zjuRong/openNAU
Evaluation signals
- All replicate injections of the same sample show the same unified feature identifiers (m/z and standardized RT) with non-zero intensities in replicate columns.
- Retention-time standard deviation within each aligned feature group falls within the specified tolerance (e.g., ±0.1–0.5 min).
- Feature abundance matrix has consistent dimensions (rows = features, columns = samples) with no missing entries after alignment.
- Comparison of raw peak list size before and after alignment shows expected reduction in row count (consolidation of replicates).
- No systematic biases in RT differences between early and late-eluting features (indicates uniform drift correction).
Limitations
- Alignment quality depends critically on retention-time tolerance threshold; too loose results in false feature grouping, too tight misses true replicates.
- Significant chromatographic drift between runs (e.g., > tolerance threshold) can cause legitimate replicates to be split into separate features.
- Co-eluting isomers with identical m/z may be incorrectly grouped into a single feature if they fall within RT and m/z tolerances.
- Algorithm assumes similar sample composition and injection order across replicates; violation can introduce systematic misalignment.
Evidence
- [other] Workflow step: peak alignment and feature grouping: "Perform peak alignment and feature grouping to consolidate peaks from replicate injections into unified features."
- [other] Data consolidation rationale: "Extract intensity values for each feature across all samples and compile into a feature abundance matrix."
- [readme] Software functionality in openNAU: "It includes the extraction of raw mass data and quality control for the identification of differential metabolic ion peaks."