agentsclimarketplace

Retention time scan mapping

Skill HolobiomicsLab/asb-skill-collections/collections/metabolomics/v2/skills/retention-time-scan-mapping

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 retention-time-scan-mapping

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 loaded an LC-MS spectrum file (mzML, mzXML, or equivalent) into the GNPS LCMS Visualization Dashboard and need to annotate extracted ion chromatograms with the precise retention time or scan ID positions where MS2 events occurred.

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

6.9 KB, as published. Nobody here has run it

retention-time-scan-mapping

License: restricted — no clear open-source license detected for the underlying tool; verify licensing before commercial use or redistribution. <!-- asb-license-banner -->

Summary

Map MS2 precursor scan positions to their corresponding retention times or scan identifiers on extracted ion chromatograms (XIC). This skill enables overlay of tandem mass spectrometry data points onto LC-MS chromatographic displays when the show_ms2_markers parameter is enabled.

When to use

When you have loaded an LC-MS spectrum file (mzML, mzXML, or equivalent) into the GNPS LCMS Visualization Dashboard and need to annotate extracted ion chromatograms with the precise retention time or scan ID positions where MS2 events occurred. Use this when show_ms2_markers is set to True and you want to validate that precursor ions were successfully fragmented at expected chromatographic positions.

When NOT to use

  • The spectrum file contains only MS1 (full-scan) data with no MS/MS events — there will be no precursor positions to map.
  • The show_ms2_markers parameter is set to False or absent — the dashboard will not display marker annotations regardless of mapping output.
  • The spectrum file format is not compatible with standard parsers (mzML, mzXML, or supported equivalents) — precursor metadata cannot be reliably extracted.

Inputs

  • LC-MS spectrum file (mzML, mzXML, or equivalent format)
  • MS/MS scan metadata (precursor scan indices, retention times, scan identifiers)
  • show_ms2_markers parameter (boolean: True/False)
  • ms2_identifier parameter (marker identifier or set of identifiers)

Outputs

  • Structured marker position file (JSON, CSV, or TSV) with retention time + scan ID pairs
  • XIC display with overlaid MS2 precursor markers at chromatographic retention times
  • Annotated extracted ion chromatogram showing MS2 event locations

How to apply

Parse the MS/MS scan metadata from the loaded spectrum file to extract precursor scan indices and their associated retention times or scan identifiers. Filter and validate each precursor position to confirm it corresponds to an actual MS2 event in the spectrum data. Compile the set of validated marker positions (retention time + scan ID pairs or single identifier per precursor) into a structured output format (JSON, CSV, or TSV) suitable for XIC annotation. Pass this compiled set to the dashboard's XIC display layer via the ms2_identifier parameter, which will overlay the markers at their corresponding chromatographic coordinates.

Related tools

Examples

https://gnps-lcms.ucsd.edu/?usi=mzspec%3AGNPS%3ATASK-d93bdbb5cdda40e48975e6e18a45c3ce-f.mwang87%2Fdata%2FYao_Streptomyces%2Froseosporus%2F0518_s_BuOH.mzXML%3Ascan%3A171&show_ms2_markers=1&ms2_identifier=MS2%3A1176

Evaluation signals

  • MS2 marker positions appear at correct retention times on the XIC display (visual alignment with expected chromatographic peak positions).
  • Each marker corresponds to exactly one validated MS2 event in the parsed spectrum metadata (no spurious or duplicate markers).
  • Marker output file (JSON/CSV/TSV) contains non-empty, well-formed retention time + scan ID pairs.
  • When the same spectrum is queried multiple times, marker positions remain consistent (deterministic mapping).
  • Markers respect the xic_tolerance parameter and appear only within the specified m/z window on the extracted ion chromatogram.

Limitations

  • Marker accuracy depends on correct parsing of precursor scan metadata; malformed or corrupt spectrum headers may produce incomplete or misaligned markers.
  • The mapping assumes a one-to-one correspondence between scan indices and retention times; non-linear or ambiguous scan-RT relationships may cause misalignment.
  • Large spectrum files with thousands of MS2 events may incur performance overhead when compiling and rendering all markers simultaneously.
  • The ms2_identifier parameter accepts only a single identifier or set of identifiers; filtering to a subset of MS2 events requires pre-filtering before submission to the dashboard.

Evidence

  • [other] When show_ms2_markers is set to True, the dashboard accepts an ms2_identifier parameter to mark MS2 precursor positions on the XIC display, enabling users to overlay tandem mass spectrometry data points at their corresponding retention times or scan IDs on extracted ion chromatograms.: "When show_ms2_markers is set to True, the dashboard accepts an ms2_identifier parameter to mark MS2 precursor positions on the XIC display"
  • [other] Parse MS/MS (MS2) scan metadata to extract precursor scan indices and associated retention times or scan identifiers.: "Parse MS/MS (MS2) scan metadata to extract precursor scan indices and associated retention times or scan identifiers"
  • [other] Filter and validate precursor positions to ensure they correspond to actual MS2 events in the spectrum.: "Filter and validate precursor positions to ensure they correspond to actual MS2 events in the spectrum"
  • [other] Compile the set of marker positions (retention time + scan ID pairs or single identifier per precursor) into a structured output file (JSON, CSV, or TSV) suitable for XIC annotation.: "Compile the set of marker positions (retention time + scan ID pairs or single identifier per precursor) into a structured output file (JSON, CSV, or TSV)"
  • [other] Load the resolved spectrum file (mzML, mzXML, or equivalent format) into memory.: "Load the resolved spectrum file (mzML, mzXML, or equivalent format) into memory"

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.