agentsclimarketplace

Metadata table column mapping

Skill HolobiomicsLab/asb-skill-collections/collections/metabolomics/v2/skills/metadata-table-column-mapping

Use when you have a GNPS-format TSV metadata table with mandatory columns (ATTRIBUTE_Species, ATTRIBUTE_Organe, and optional genus/family columns) and need to prepare cleaned, standardized taxonomy strings for integration into the Literature Component or cross-referencing with external reference.From its SKILL.md

Install
npx -y skills add HolobiomicsLab/asb-skill-collections --skill metadata-table-column-mapping

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

metadata-table-column-mapping

Summary

Map and extract taxonomic and sample annotation columns from a TSV metadata table (GNPS format) to enable downstream calculations of novelty scores and Literature Component metrics. This skill bridges raw sample metadata to structured feature-taxon associations required by metabolomics prioritization workflows.

When to use

Apply this skill when you have a GNPS-format TSV metadata table with mandatory columns (ATTRIBUTE_Species, ATTRIBUTE_Organe, and optional genus/family columns) and need to prepare cleaned, standardized taxonomy strings for integration into the Literature Component or cross-referencing with external reference databases like Lotus or Open Tree of Life. Required when the input metadata uses inconsistent or unrecognized taxonomic nomenclature that must be resolved before scoring.

When NOT to use

  • Metadata is already validated against a stable, internally curated taxonomic reference and does not require reconciliation with external nomenclature standards.
  • Input table lacks mandatory ATTRIBUTE_Species or ATTRIBUTE_Organe columns; column mapping cannot proceed without identifying taxon columns.
  • Downstream analysis does not require Literature Component scoring or cross-reference integration with Lotus Database; column standardization alone may not justify the overhead.

Inputs

  • TSV metadata table in GNPS format with ATTRIBUTE_Species, ATTRIBUTE_Organe columns (and optionally genus, family columns)
  • Open Tree of Life API endpoint (or local reference dataset)

Outputs

  • Cleaned metadata TSV table with resolved taxonomic names
  • OTOL_ID columns (one per taxonomic rank: species, genus, family)
  • Mapping table linking original taxon names to resolved names and OTOL_IDs

How to apply

Load the TSV metadata table and identify the three key taxonomic rank columns specified as species_column, genus_column, and family_column according to the GNPS metadata standard. For each unique taxon name in each rank, query the Open Tree of Life API to retrieve the currently accepted taxonomic name and Open Tree of Life identifier (OTOL_ID). Create a mapping table linking original names to resolved names and OTOL_IDs for all three ranks. Replace original taxonomy strings in the metadata table with resolved names and append OTOL_ID columns for each rank. Validate that all taxon strings have been successfully mapped; unresolved entries should be flagged for manual review or secondary lookup. The resulting cleaned metadata TSV table becomes the authoritative input for subsequent Literature Component calculations and enables cross-referencing with the Lotus Database, which uses the NPClassifyre ontology.

Related tools

Evaluation signals

  • All unique taxon strings in species_column, genus_column, and family_column have corresponding entries in the mapping table with non-null OTOL_IDs.
  • Resolved taxonomy names match current nomenclature standards from Open Tree of Life API (no deprecated or misspelled names remain).
  • The cleaned metadata TSV table has three new columns (one per rank) containing OTOL_IDs with no missing values for mapped taxa.
  • Row count and sample identifiers are preserved between input and output metadata tables; no samples are dropped during mapping.
  • Downstream Literature Component calculations using the cleaned metadata produce valid scores (e.g., LC values between 0 and 1) without errors or missing taxon lookups.

Limitations

  • Open Tree of Life API may not have entries for rare, newly described, or colloquial species names; unresolved taxa require manual curation or alternative reference databases.
  • Taxonomy normalization is independent of spectral or chemical data and does not validate whether the mapped taxon is appropriate for the sample's actual chemical content.
  • Mapping fidelity depends on input string quality (spelling, capitalization, nomenclatural authority); severely malformed or transliterated taxon strings may fail to resolve.
  • Open Tree of Life uses its own taxonomic backbone; results may differ from other reference systems (NCBI, GBIF) and may not align with Lotus Database nomenclature without additional harmonization.

Evidence

  • [other] Load the metadata table (TSV format) and extract the three columns specified as species_column, genus_column, and family_column.: "Load the metadata table (TSV format) and extract the three columns specified as species_column, genus_column, and family_column."
  • [other] For each unique taxon name in each taxonomic rank, query the Open Tree of Life API to retrieve the current accepted name and taxon Open Tree of Life identifier (OTOL_ID).: "For each unique taxon name in each taxonomic rank, query the Open Tree of Life API to retrieve the current accepted name and taxon Open Tree of Life identifier (OTOL_ID)."
  • [other] Replace the original taxonomy strings in the metadata table with resolved names and append OTOL_ID columns for each rank.: "Replace the original taxonomy strings in the metadata table with resolved names and append OTOL_ID columns for each rank."
  • [other] The standard format from GNPS is preferred: metadata_filename: it uses the GNPS format: "The standard format from GNPS is preferred: metadata_filename: it uses the GNPS format"
  • [readme] The species should be cleaned to up-to-day recognized names, you can use the Open Tree of Life to do so: "The species should be cleaned to up-to-day recognized names, you can use the Open Tree of Life to do so"
  • [readme] ATTRIBUTE_Species : The species should be cleaned to up-to-day recognized names, you can use the Open Tree of Life: "ATTRIBUTE_Species : The species should be cleaned to up-to-day recognized names, you can use the Open Tree of Life"
  • [other] suitable for use in subsequent LC calculations and cross-referencing with the Lotus Database (which uses NPClassifyre ontology): "suitable for use in subsequent LC calculations and cross-referencing with the Lotus Database (which uses NPClassifyre ontology)"

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.