Metadata Harmonization Starter

SkillAI & models

Use this skill to harmonize small metadata tables with inconsistent column names and categorical labels into one canonical TSV plus a compact JSON summary.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Metadata Harmonization Starter skill

About this capability

A framework for discovering, compiling, and validating reusable skills for scientific agents.

What this skill tells your AI

The instructions your AI receives, as published by ma-compbio-lab/skillfoundry in skills/data-acquisition-and-dataset-handling/metadata-harmonization-starter/SKILL.md and read by ahel’s review.

Use this skill to harmonize small metadata tables with inconsistent column names and categorical labels into one canonical TSV plus a compact JSON summary.

What This Skill Does

  • reads one or more tabular metadata files
  • applies a JSON mapping from source columns to canonical fields
  • normalizes selected categorical values such as sex and condition
  • writes a harmonized TSV and a machine-readable summary

When To Use It

  • when you need a starter for metadata-harmonization
  • when multiple small test fixtures use different metadata headers
  • when you want deterministic harmonized outputs before validation or format conversion

Run

python3 skills/data-acquisition-and-dataset-handling/metadata-harmonization-starter/scripts/run_metadata_harmonization.py \
  --input skills/data-acquisition-and-dataset-handling/metadata-harmonization-starter/examples/cohort_a.tsv \
  --input skills/data-acquisition-and-dataset-handling/metadata-harmonization-starter/examples/cohort_b.tsv \
  --mapping skills/data-acquisition-and-dataset-handling/metadata-harmonization-starter/examples/column_mapping.json \
  --out-tsv scratch/metadata-harmonization/harmonized_metadata.tsv \
  --summary-out scratch/metadata-harmonization/harmonized_metadata_summary.json

Notes

  • The starter keeps the mapping external so the same script can be reused for other tiny fixtures.
  • Canonical rows are sorted by sample_id to keep committed outputs deterministic.

Signals

GitHub stars
39
Forks
5
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
metadata-harmonization-starter
Source
github.com/ma-compbio-lab/skillfoundry