Skip to content
Back to skills

Metadata Harmonization Starter

ASecurity

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

  • 38 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 8, 2026
ai-agentspythongobash

Security analysis

A100/100

Pro scans all 11 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add ma-compbio-lab/SkillFoundry --skill metadata-harmonization-starter --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Metadata Harmonization Starter?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Metadata Harmonization Starter
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ma-compbio-lab-metadata-harmonization-starter/badge)](https://www.skillsdirectory.com/skills/ma-compbio-lab-metadata-harmonization-starter)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Metadata Harmonization Starter

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

```bash
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.

Files in this skill

  • SKILL.md1.5 KB
  • assets/README.md80 B
  • assets/harmonized_metadata.tsv212 B
  • assets/harmonized_metadata_summary.json688 B
  • examples/cohort_a.tsv74 B
  • examples/cohort_b.tsv97 B
  • examples/column_mapping.json755 B
  • metadata.yaml1.6 KB
  • refs.md240 B
  • scripts/run_metadata_harmonization.py4.3 KB
  • tests/test_run_metadata_harmonization.py3.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…