agentsclimarketplace

Json structured report generation

Skill HolobiomicsLab/asb-skill-collections/collections/metabolomics/v2/skills/json-structured-report-generation

Use when after Mass2Motif annotation candidates have been ranked and filtered by similarity score (using Spec2Vec embeddings queried against MotifDB), you need to serialize the ranked results into a standardized, hierarchical format that preserves confidence metadata and enables programmatic access.From its SKILL.md

Install
npx -y skills add HolobiomicsLab/asb-skill-collections --skill json-structured-report-generation

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 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.4 KB, ~1.1k tokens by cl100k_base, as published. Nobody here has run it

json-structured-report-generation

Summary

Generate machine-readable JSON reports that map discovered Mass2Motifs to candidate substructures, confidence scores, and structural classes. This skill bridges automated annotation inference with structured output suitable for downstream computational integration and human review.

When to use

After Mass2Motif annotation candidates have been ranked and filtered by similarity score (using Spec2Vec embeddings queried against MotifDB), you need to serialize the ranked results into a standardized, hierarchical format that preserves confidence metadata and enables programmatic access to substructure assignments for each motif.

When NOT to use

  • Mass2Motif discovery has not yet been completed; report generation requires ranked annotation candidates as input.
  • Annotation candidates have not been ranked or filtered by similarity threshold; unranked candidates should not be serialized without explicit score stratification.
  • The analysis goal is exploratory visualization only; use MS2LDAViz interactive interface instead of generating static JSON reports.

Inputs

  • Ranked annotation candidates (from MotifDB query results filtered by similarity threshold)
  • Mass2Motif identifiers and fragmentation patterns
  • Spec2Vec similarity scores for each candidate annotation
  • Structural class labels from reference database

Outputs

  • JSON report file mapping Mass2Motifs to candidate substructures, confidence scores, and structural classes
  • Structured annotation metadata suitable for programmatic access and downstream integration

How to apply

The MAG module computes Spec2Vec embeddings for each discovered Mass2Motif pseudo-spectrum (fragments and neutral losses weighted by LDA probabilities), queries MotifDB via those embeddings to retrieve structurally related reference motifs, ranks candidates by similarity score using default MAG heuristics or explicit thresholds, and then serializes the ranked candidates into a JSON report. Each motif entry in the report includes its identifier, candidate annotations with associated confidence scores, structural class labels, and any auxiliary metadata (e.g., motif composition statistics). The JSON structure should be flat or hierarchical enough to enable both human readability and programmatic parsing by annotation validation pipelines or structure elucidation workflows.

Related tools

  • MAG (Automated Mass2Motif Annotation Guidance) (Generates ranked annotation candidates by querying MotifDB with Spec2Vec embeddings and filtering by similarity score; orchestrates serialization into JSON format) — https://github.com/vdhooftcompmet/MS2LDA
  • Spec2Vec (Computes embeddings for Mass2Motif pseudo-spectra; enables similarity-based retrieval and ranking of reference motifs from MotifDB) — https://zenodo.org/records/15688609
  • MotifDB (Serves as query target and source of reference motif metadata (structural classes, candidate annotations); results are filtered and ranked before JSON serialization)
  • MS2LDA (Parent workflow that orchestrates preprocessing, LDA modeling, and invocation of MAG for annotation guidance and JSON report generation) — https://github.com/vdhooftcompmet/MS2LDA

Evaluation signals

  • JSON schema is valid and parseable by standard JSON libraries; no serialization errors or truncation artifacts.
  • Each Mass2Motif entry includes at least one ranked candidate annotation with non-null confidence score and structural class label.
  • Similarity scores are monotonically decreasing across ranked candidates for each motif (or explicitly tied); no out-of-order ranks.
  • All Mass2Motif identifiers in the report correspond to motifs discovered in the preceding LDA modeling step.
  • JSON file size and record count are consistent with the number of discovered motifs and candidate annotations; spot-check a sample of motif entries for metadata completeness.

Limitations

  • Report quality depends on MotifDB coverage and the appropriateness of the Spec2Vec model for the user's spectral domain; low-scoring candidates may indicate sparse reference data or model domain mismatch.
  • Default MAG heuristics and similarity thresholds are applied; users unfamiliar with the threshold rationale may generate reports with either inflated false positives or suppressed true candidates.
  • JSON serialization does not include confidence interval or Bayesian posterior estimates; scores are point estimates from the MAG ranking heuristic.
  • The report is a snapshot of annotations at the time of generation; it does not track how annotations change if MotifDB or the Spec2Vec model are updated.

Evidence

  • [other] Generate and return an annotation report mapping each Mass2Motif to candidate substructures, confidence scores, and structural classes in JSON format.: "Generate and return an annotation report mapping each Mass2Motif to candidate substructures, confidence scores, and structural classes in JSON format."
  • [other] Rank and filter candidate annotations by similarity score (default threshold applied by MAG heuristics).: "Rank and filter candidate annotations by similarity score (default threshold applied by MAG heuristics)."
  • [methods] Automated Mass2Motif Annotation Guidance (MAG) with Spec2Vec: "Automated Mass2Motif Annotation Guidance (MAG) with Spec2Vec"
  • [other] Query MotifDB via the loaded embeddings to retrieve structurally related reference motifs and candidate annotations.: "Query MotifDB via the loaded embeddings to retrieve structurally related reference motifs and candidate annotations."
  • [other] Compute Spec2Vec embeddings for each Mass2Motif pseudo-spectrum using the loaded model.: "Compute Spec2Vec embeddings for each Mass2Motif pseudo-spectrum using the loaded model."

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,834. 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.