Usi spectrum identifier encoding
Use when you have a Universal Spectrum Identifier (USI) string referencing a spectrum in a supported metabolomics repository (GNPS, MassBank, MetaboLights, Metabolomics Workbench, MassIVE, or MS2LDA) and need to create an embeddable, scannable reference for publication or data integration that.From its SKILL.md
npx -y skills add HolobiomicsLab/asb-skill-collections --skill usi-spectrum-identifier-encodingAssembled 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.1 KB, ~1.3k tokens by cl100k_base, as published. Nobody here has run it
USI Spectrum Identifier Encoding
Summary
Encode metabolomics spectrum identifiers (USI) into QR codes that resolve to interactive spectrum visualization endpoints. This enables third-party embedding of spectrum references in publications and repositories via standard URL resolution.
When to use
You have a Universal Spectrum Identifier (USI) string referencing a spectrum in a supported metabolomics repository (GNPS, MassBank, MetaboLights, Metabolomics Workbench, MassIVE, or MS2LDA) and need to create an embeddable, scannable reference for publication or data integration that links to a viewable/interactive spectrum plot.
When NOT to use
- USI string is malformed or references an unsupported data source (not GNPS, MassBank, MetaboLights, Metabolomics Workbench, MassIVE, MS2LDA, MOTIFDB, or ProteomeXchange).
- The target spectrum does not exist in the referenced repository or has been deleted/archived.
- You require direct spectrum data export (binary or text) rather than a resolver link; use JSON or CSV endpoints instead.
Inputs
- USI string (Universal Spectrum Identifier in mzspec or mzdraft format)
- USI source type (GNPS, MassBank, MetaboLights, Metabolomics Workbench, MassIVE, MS2LDA, MOTIFDB, ProteomeXchange)
- Optional output format preference (PNG or SVG)
Outputs
- QR code image file (PNG or SVG format)
- Resolver URL string (embeddable endpoint)
- Embedded spectrum visualization link
How to apply
Accept a valid USI string formatted as mzspec:<source>:<dataset>:<index_type>:<index_value> (e.g., mzspec:GNPS:GNPS-LIBRARY:accession:CCMSLIB00005436077). Construct the resolver endpoint URL by appending the USI to the base metabolomics USI resolver (metabolomics-usi.ucsd.edu). Pass this URL to a QR code generation library to produce an image encoding the resolver URL. Return the QR code as PNG or SVG, suitable for embedding in publication figures, supplementary materials, or data repository metadata. Validate the USI format against supported source schemas (MASSBANK, GNPS, MOTIFDB, MassIVE, MetaboLights, Metabolomics Workbench, PXD identifiers) before encoding.
Related tools
- QR Code Generation Library (Encodes resolver URL into a QR code image for third-party embedding)
- USI Resolver and Displayer (Resolves USI strings to interactive spectrum visualization endpoints and handles multiple metabolomics data sources) — github.com/mwang87/MetabolomicsSpectrumResolver
- GNPS Spectral Libraries (Supported source for USI identifiers (GNPS-LIBRARY accessions))
- MassBank (Supported source for USI identifiers (MASSBANK accessions))
- MetaboLights (Supported source for USI identifiers (MSV dataset identifiers))
- Metabolomics Workbench (Supported source for USI identifiers (MSV dataset identifiers))
Evaluation signals
- QR code image decodes to a valid resolver URL matching the pattern https://metabolomics-usi.ucsd.edu/spectrum/?usi=<USI_STRING>
- USI string in the encoded URL matches the input USI exactly (no truncation or format corruption)
- QR code can be scanned by standard QR code readers and resolves to a live spectrum visualization page
- Output image format (PNG or SVG) is valid and renders without errors in standard viewers
- The resolver endpoint returns HTTP 200 and displays the requested spectrum when the QR code is scanned or URL is visited directly
Limitations
- USI identifiers are based on draft specifications (mzdraft prefix) and are subject to change; format stability is not guaranteed.
- The resolver only works for spectra that exist in the supported repositories at the time of QR code generation; deleted or moved spectra will result in broken links.
- Resolver endpoint availability depends on external repository infrastructure (GNPS, MassBank, etc.) and network connectivity.
- QR code size and error correction level may need adjustment for printed vs. digital embedding; no adaptive sizing parameters are documented in the README.
Evidence
- [readme] Enable creation of embeddable images in publications that will link out to viewable/interactable spectrum plots.: "Enable creation of embeddable images in publications that will link out to viewable/interactable spectrum plots."
- [readme] 3rd party embedding of QR code.: "3rd party embedding of QR code."
- [other] Accept a USI string (dataset identifier, spectrum index, and optional library reference) as input. Construct the resolver URL by appending the USI to the base USI resolver endpoint. Generate a QR code image that encodes this resolver URL using a QR code library. Return the QR code as an embeddable image file (PNG or SVG format) suitable for third-party integration into publications.: "Accept a USI string (dataset identifier, spectrum index, and optional library reference) as input. Construct the resolver URL by appending the USI to the base USI resolver endpoint. Generate a QR"
- [readme] These identifiers are based on draft USI and draft Metabolomics USI identifiers. Thus, they are subject to change, and so for the moment, they will be specified as
mzdraftinstead ofmzspecin the first block.: "These identifiers are based on draft USI and draft Metabolomics USI identifiers. Thus, they are subject to change, and so for the moment, they will be specified asmzdraftinstead ofmzspecin" - [readme] Supported USI Types: 1. GNPS Molecular Networking Clustered Spectra 2. GNPS Spectral Libraries 3. ProteoXchange Repository Data 4. MS2LDA Reference Motifs 5. MassBank Library Spectra 6. MetaboLights Dataset Spectra 7. Metabolomics Workbench Dataset Spectra: "Supported USI Types: 1. GNPS Molecular Networking Clustered Spectra 2. GNPS Spectral Libraries 3. ProteoXchange Repository Data 4. MS2LDA Reference Motifs 5. MassBank Library Spectra 6. MetaboLights"
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.