agentsclimarketplace

Search result aggregation and normalization

Skill HolobiomicsLab/asb-skill-collections/collections/metabolomics/v1/skills/search-result-aggregation-and-normalization

Use when you have executed batch searches across two or more domain-specific MASST tools and obtained separate output files (_microbe.json, _plant.json, _tissue.From its SKILL.md

Install
npx -y skills add HolobiomicsLab/asb-skill-collections --skill search-result-aggregation-and-normalization

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

7.5 KB, ~1.3k tokens by cl100k_base, as published. Nobody here has run it

search-result-aggregation-and-normalization

Summary

Combine and normalize search output files from multiple domain-specific MASST tools (microbeMASST, plantMASST, tissueMASST, microbiomeMASST, foodMASST) into unified, structured artifacts compatible with metadataMASST visualization. This skill reconciles heterogeneous spectrum match results across domains into a single coherent summary.

When to use

You have executed batch searches across two or more domain-specific MASST tools and obtained separate output files (_microbe.json, _plant.json, _tissue.json, etc.), and you need to merge these results into a single visualizable summary for cross-domain comparison or comprehensive metabolite annotation.

When NOT to use

  • Single-domain search output: if you only ran one MASST tool, there is nothing to aggregate — pass the output directly to metadataMASST visualization.
  • Unaggregated raw spectral data: if you have raw MS/MS spectra (.mgf) or USI lists, execute the batch search first using jobs.py before attempting aggregation.
  • Pre-aggregated metadataMASST output: if the results are already in metadataMASST format, this skill is redundant.

Inputs

  • Output files from one or more domain-specific MASST batch searches (_matches.tsv, _library.tsv, _datasets.tsv, _count_domain.tsv, _domain.json, _domain.html)
  • Spectrum identifiers and match metadata from multiple MASST tools

Outputs

  • Unified aggregated table or structured JSON combining results from all domain-specific MASST searches
  • Visualizable summary artifact compatible with metadataMASST web interface
  • Consolidated match records with spectrum IDs, cosine scores, and cross-domain metadata

How to apply

Load search output files from each domain-specific MASST run (typically _matches.tsv, _library.tsv, _datasets.tsv, and _count_domain.tsv files). Parse and normalize the results by extracting spectrum identifiers, cosine match scores, and domain-specific metadata fields using a common schema. Merge records from multiple MASST outputs by aligning on shared spectrum IDs and consolidating duplicate matches while preserving domain-specific annotations. Aggregate match counts and dataset information across domains. Generate a unified output table or structured JSON artifact that combines all domain results and is compatible with the metadataMASST web interface for interactive visualization. Validate the aggregated output by checking that all input spectra are represented, no records were lost in the merge, and consistency is maintained across metadata fields.

Related tools

Evaluation signals

  • All spectra from input domain-specific MASST searches appear in the aggregated output with no data loss.
  • Spectrum identifiers, cosine match scores, and metadata fields are preserved and correctly mapped across all domains.
  • Merged records do not duplicate matches found in multiple domain searches; consolidation logic correctly identifies and deduplicates cross-domain hits.
  • The aggregated artifact is successfully consumed by metadataMASST web interface without schema or format errors.
  • Aggregated match counts per dataset and per domain match the sum of individual domain-specific MASST outputs.

Limitations

  • Aggregation requires all input MASST tools to complete successfully; if some domain searches fail or timeout, those results will be missing from the unified summary.
  • The Fast Search API used by jobs.py may fail on some entries, requiring multiple sequential re-runs until no new output is generated (as noted in the README).
  • Currently supported domains are limited to microbeMASST, plantMASST, tissueMASST, microbiomeMASST, and foodMASST; adding new domain tools requires schema extension.
  • Aggregation preserves only the metadata fields extracted by individual MASST tools; if a domain tool does not report a particular field, that information is lost in the unified output.

Evidence

  • [other] metadataMASST accepts aggregated search outputs from one or more domain-specific MASST runs and produces visualizable summary artifacts: "metadataMASST accepts aggregated search outputs from one or more domain-specific MASST runs and produces visualizable summary artifacts"
  • [other] Parse and normalize search results across domain sources: "Parse and normalize search results, extracting spectrum identifiers, match scores, and metadata fields across domain sources"
  • [other] Aggregate results by merging records from multiple MASST outputs: "Aggregate results by merging records from multiple MASST outputs into a unified table or structured format"
  • [other] metadataMASST web interface compatibility: "Generate a combined visualizable summary artifact compatible with the metadataMASST web interface"
  • [readme] Batch search outputs from jobs.py: "Running jobs.py allows users to leverage the Fast Search API and execute a batch search of multiple MS/MS spectra against the current indexed data in GNPS/MassIVE, Metabolomics Workbench,"
  • [readme] Output files generated by batch search: "A series of interactive HTML trees files will be generated for each domain-specific MASST ending with _domain.html (e.g., _microbe.html)"
  • [other] Validation step for aggregation: "Validate the aggregated output for completeness and consistency across input sources"

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.