agentsclimarketplace

Qr code generation and embedding

Skill HolobiomicsLab/asb-skill-collections/packs/metabolomics/lc-ms/skills/qr-code-generation-and-embedding

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 qr-code-generation-and-embedding

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 you need to publish metabolomics spectra in static media (PDF, print, supplementary tables) and want readers or automated systems to access the corresponding interactive spectrum visualization without manual lookup.

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.4 KB, as published. Nobody here has run it

QR code generation and embedding

Summary

Generate QR codes that encode Universal Spectrum Identifiers (USIs) pointing to metabolomics spectrum data, enabling third-party embedding of machine-readable references into publications and supplementary materials. This skill bridges static publication media with interactive spectrum visualization by encoding resolver URLs that dereference to specific spectra across metabolomics repositories.

When to use

Use this skill when you need to publish metabolomics spectra in static media (PDF, print, supplementary tables) and want readers or automated systems to access the corresponding interactive spectrum visualization without manual lookup. Specifically when you have resolved USI identifiers from supported sources (GNPS, MassBank, MetaboLights, Metabolomics Workbench, ProteoXchange, MS2LDA) and need to embed machine-readable spectrum references that link directly to the resolver endpoint.

When NOT to use

  • Input USI is unresolved or malformed (does not conform to mzspec/mzdata syntax for a supported source)
  • Target audience lacks QR code scanning capability or the publication medium cannot embed raster/vector images
  • The spectrum data source is not supported by the resolver (outside GNPS, MassBank, MetaboLights, Metabolomics Workbench, ProteoXchange, MS2LDA)

Inputs

  • Universal Spectrum Identifier (USI) string (fully qualified, e.g., mzspec:SOURCE:dataset:index:scan_number)
  • Base resolver endpoint URL (e.g., https://metabolomics-usi.ucsd.edu/spectrum/)
  • Target format preference (PNG or SVG)

Outputs

  • QR code image file (PNG or SVG format)
  • Embeddable QR code suitable for publication or supplementary material
  • Encoded resolver URL within the QR code

How to apply

Accept a fully qualified USI string as input (e.g., 'mzspec:GNPS:GNPS-LIBRARY:accession:CCMSLIB00005436077' or 'mzspec:MASSBANK::accession:SM858102'). Construct the resolver URL by appending the USI to the base MetabolomicsSpectrumResolver endpoint (e.g., 'https://metabolomics-usi.ucsd.edu/spectrum/?usi=[USI]'). Pass this resolver URL to a QR code generation library (e.g., pyqrcode or qrcode Python packages) to encode the full URL as a 2D barcode. Generate the QR code output in a publication-compatible format (PNG or SVG). Embed the resulting QR code image as a figure, table cell, or supplementary element alongside the spectrum metadata or caption. Verify that scanning the QR code or copying the embedded resolver URL successfully redirects to the interactive spectrum viewer.

Related tools

  • MetabolomicsSpectrumResolver (Resolves USI identifiers to spectrum data and provides the base resolver endpoint that QR codes encode) — https://github.com/mwang87/MetabolomicsSpectrumResolver
  • QR Code Generation Library (Encodes the resolver URL as a 2D barcode in PNG or SVG format)
  • GNPS Molecular Networking (Source repository for clustered spectra USI references)
  • MassBank (Source repository for library spectra USI references)
  • MetaboLights (Source repository for dataset spectra USI references)
  • Metabolomics Workbench (Source repository for dataset spectra USI references)

Examples

https://metabolomics-usi.ucsd.edu/qrcode/?usi=mzspec:GNPS:GNPS-LIBRARY:accession:CCMSLIB00005436077

Evaluation signals

  • QR code image is valid and scannable by standard QR readers
  • Scanning the QR code or manually extracting and visiting the encoded URL successfully resolves to the MetabolomicsSpectrumResolver endpoint with the correct USI parameter
  • The resolver endpoint returns a valid spectrum visualization or metadata for the encoded USI
  • QR code output format matches the requested type (PNG or SVG) and is embeddable in the target publication/medium
  • The encoded USI string is preserved exactly (no truncation, corruption, or character encoding errors) in the QR code URL

Limitations

  • USI identifiers are based on draft USI and draft Metabolomics USI standards and are subject to change; currently designated as 'mzdraft' instead of 'mzspec' in some contexts
  • QR code generation and embedding success depends on compatibility of the target publication format with image embedding (e.g., some legacy PDF or plain text formats may not support QR visualization)
  • End-user access to the interactive spectrum visualization requires network connectivity and access to the MetabolomicsSpectrumResolver service; offline readers cannot follow the embedded link

Evidence

  • [other] The tool achieves 3rd-party embedding of QR codes as one of its core objectives, allowing external systems to embed QR codes that reference USI identifiers from supported metabolomics data sources.: "The tool achieves 3rd-party embedding of QR codes as one of its core objectives, allowing external systems to embed QR codes that reference USI identifiers from supported metabolomics data sources."
  • [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"
  • [intro] 3rd party embedding of QR code.: "3rd party embedding of QR code."
  • [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 mzdraft instead of mzspec in 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 as mzdraft instead of mzspec in"

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.