agentsclimarketplace

Spectrum metadata normalization across formats

Skill HolobiomicsLab/asb-skill-collections/collections/metabolomics/v2/skills/spectrum-metadata-normalization-across-formats

Use when you have mass-spectrometry data files in mixed formats (e.From its SKILL.md

Install
npx -y skills add HolobiomicsLab/asb-skill-collections --skill spectrum-metadata-normalization-across-formats

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

6.8 KB, ~1.1k tokens by cl100k_base, as published. Nobody here has run it

spectrum-metadata-normalization-across-formats

Summary

Unify mass-spectrometry spectrum data across vendor-specific and open file formats (mzML, mzXML, vendor binary) into a single normalized in-memory representation with standardized metadata fields. This skill enables tool developers and analysts to read and process heterogeneous MS data through a single API without format-specific branching logic.

When to use

You have mass-spectrometry data files in mixed formats (e.g., vendor raw files on Windows, mzML exports, mzXML conversions) and need a single code path to extract and compare essential metadata (scan ID, retention time, m/z values, intensity values, precursor m/z, charge state) without re-implementing format-specific parsers for each tool.

When NOT to use

  • Input data are already in a single, standardized format and no cross-format comparison or tool reuse is required.
  • Vendor-specific metadata or binary header information critical to your analysis cannot be represented in a common schema without loss of fidelity.
  • You need real-time streaming access to spectra and the overhead of format detection and normalization is prohibitive.

Inputs

  • mass-spectrometry raw data file (vendor binary format)
  • mzML-formatted spectrum file
  • mzXML-formatted spectrum file
  • file path or stream with unknown MS data format

Outputs

  • normalized in-memory spectrum object with standardized metadata fields
  • unified spectrum iterator or random-access collection
  • common spectrum metadata (scan ID, retention time, m/z array, intensity array, precursor m/z, charge state)

How to apply

Design a unified spectrum data structure that captures essential metadata (scan ID, retention time, m/z values, intensity values, precursor m/z, charge state) spanning all target formats. Implement file format detection and routing logic to identify the input file type (mzML, mzXML, vendor binary, etc.). Integrate or wrap existing parsers (e.g., ProteoWizard or format-specific libraries) to read raw spectra from the chosen format. Normalize parsed spectra into the unified in-memory representation, handling format-specific conventions and metadata extraction. Finally, expose the normalized spectra through a single API interface (iterator, random-access getter, or query methods) that hides format-specific details from the caller. Verify correctness by spot-checking that m/z and intensity arrays, retention times, and charge states are identical across the same sample loaded from different input formats.

Related tools

  • ProteoWizard Library and Tools (provides robust, pluggable framework for unified data file access and implements reference implementation of HUPO-PSI mzML standard) — github.com/ProteoWizard/pwiz
  • pwiz (modular open-source cross-platform library and tools for reading and normalizing vendor and open MS data formats) — github.com/ProteoWizard/pwiz

Evaluation signals

  • Spot-check that m/z arrays, intensity arrays, retention times, and charge states are identical when the same sample is loaded from two different input formats (e.g., vendor binary vs. mzML export).
  • Verify that all required metadata fields (scan ID, retention time, m/z values, intensity values, precursor m/z, charge state) are present and non-null in the normalized spectrum object.
  • Confirm that the API successfully hides format-specific details: client code should not contain format-conditional branches or vendor-specific metadata access.
  • Validate that format detection correctly routes to the appropriate parser (check routing logic against file headers or file extensions).
  • Ensure that normalized metadata conform to the HUPO-PSI mzML standard schema where applicable and that no precision or semantic loss occurs during normalization.

Limitations

  • Vendor raw data file reading is supported directly on Windows only; Linux and macOS users must convert to mzML or mzXML first via external tools.
  • Vendor-specific metadata or proprietary fields not represented in the unified schema will be lost during normalization.
  • Charge state inference or correction may differ between vendor formats; explicit charge assignments should be validated after normalization.
  • Real-time or streaming access to spectra incurs overhead from format detection and normalization at each read step.

Evidence

  • [other] unified spectrum data structure that captures essential metadata (scan ID, retention time, m/z values, intensity values, precursor m/z, charge state): "unified spectrum data structure that captures essential metadata (scan ID, retention time, m/z values, intensity values, precursor m/z, charge state)"
  • [other] file format detection and routing logic to identify the input file type (mzML, mzXML, vendor binary, etc.): "file format detection and routing logic to identify the input file type (mzML, mzXML, vendor binary, etc.)"
  • [other] Normalize parsed spectra into the unified in-memory representation, handling format-specific conventions: "Normalize parsed spectra into the unified in-memory representation, handling format-specific conventions"
  • [intro] provide a robust, pluggable development framework that simplifies and unifies data file access: "provide a robust, pluggable development framework that simplifies and unifies data file access"
  • [readme] supports reading directly from many vendor raw data formats (on Windows): "supports reading directly from many vendor raw data formats (on Windows)"
  • [readme] reference implementation of HUPO-PSI mzML standard mass spectrometry data format: "reference implementation of HUPO-PSI mzML standard mass spectrometry data format"

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.