MetaHarmonizerApp is a human-in-the-loop platform for harmonizing heterogeneous patient/sample-level metadata into standardized, ontology-grounded schemas. MetaHarmonizerApp runs MetaHarmonizer: briefly, it applies multi-staged mapping modules at the schema and value levels (SchemaMapper and OntologyMapper, respectively).
Public Deployment: metaharmonizer.online
- Try immediately without an account in an isolated 24-hour guest workspace with one-click executable de-identified public samples, or sign in for persistent workspaces and team curation memory.
- Standardize input metadata to pre-defined (OmicsMLRepo cBioPortal, cBioPortal clinical attributes, GDC, curatedMetagenomicData) or admin-uploaded schemas, with custom alias merging.
- Normalize values against local pre-indexed ontology snapshots (NCIt, UBERON, MONDO, EFO, SNOMED CT) with strict no-egress / offline NCI EVS mode.
- Review low-confidence mappings in rank-stable, risk-prioritized grouped schema and ontology queues.
- Reuse target-schema-scoped personal curator decisions and promote reviewed decisions to a shared layer.
- Export harmonized CSV, cBioPortal clinical files / validateData.py study ZIPs,
standardized SSSOM 1.0 TSV mapping sets with SEMAPV justifications, JSON
audit reports, and provenance-annotated labeled datasets (
decision_source,ontology_version, optionalhuman_onlyfilter). - Run asynchronous jobs with bounded retries, queue backpressure, and live progress.
- Preserve reproducibility through schema versions, ontology snapshot hashes,
vendored engine commit pins (
ENGINE_REF), and append-only audit history.
PostgreSQL is the durable source of truth. Redis holds reconstructable queue, progress, rate-limit, and activity state. Long-running model execution is bounded and queued, while curator review remains synchronous. The public deployment stores study files, the versioned knowledge base, and model caches on persistent host volumes; R2 stores encrypted PostgreSQL backups only.
The API and worker access the upstream
MetaHarmonizer engine exclusively
through backend/app/engine_adapter/. CI enforces this boundary so application
code depends on a stable adapter protocol rather than upstream implementation
details. The current deployment is portable but not highly available because
the host, Caddy, PostgreSQL, Redis, API, and worker share one failure domain.
See the detailed architecture for trust boundaries, module ownership, consistency rules, deployment constraints, decision records, and delegated scaling work.
| Layer | Components |
|---|---|
| Frontend | React 18, TypeScript, Vite, Tailwind CSS, TanStack Query |
| API | FastAPI, Pydantic, SQLAlchemy async, Alembic |
| Data | PostgreSQL 16, Redis 7, arq |
| ML | MetaHarmonizer, Sentence Transformers, FAISS, optional Gemini |
| Operations | Docker Compose, Caddy, GitHub Actions, systemd adapters |
Prerequisites: Docker Engine with Compose, approximately 15 GB free disk, and 8 GB RAM.
git clone https://github.com/sehyunohlab/MetaHarmonizerApp.git
cd MetaHarmonizerApp
cp .env.example .envFor a local evaluation, set AUTH_MODE=none in .env. For JWT authentication,
replace JWT_SECRET with a random value of at least 32 bytes.
docker compose --profile kb run --rm kb-import
docker compose up --buildOpen http://localhost:8080. The API health endpoint is http://localhost:8000/healthz, and local Swagger documentation is available at http://localhost:8000/docs.
The API container applies Alembic migrations during startup. See the local setup guide for authenticated development, native hot reload, email configuration, reset procedures, and troubleshooting.
# Backend
cd backend
pytest
# Frontend
cd frontend
npm install
npm run build
npm test
# End-to-end tests against a running stack
cd e2e
npm ci
npm testProtected CI validates backend and frontend tests, coverage floors, dependency audits, secret scanning, CodeQL, container vulnerability scans, SBOM generation, non-root execution, and runtime smoke tests. The engine adapter contract prevents direct upstream-engine imports outside the adapter boundary.
Using the application
- Curator guide — upload, review mappings, confirm ontology terms, export
- Administrator guide — users and roles, schema versions, aliases, learned decisions, federation
- MCP server — drive harmonization from Claude Desktop, Cursor, or VS Code
Running it
- Local setup and troubleshooting
- Production deployment and recovery
- Change review and production release process
- Production operations
- Knowledge-base lifecycle — how ontology corpora are refreshed
- Capacity and scaling
- Service-level objectives
- Authority handover
Design and contribution
- Architecture
- Engine adapter
- Load and stress testing
- Accuracy benchmarks
- Licensing and cBioPortal RFC 86
Operational evidence — dated records of exercises actually run
- Backup restore drill
- Rollback drill
- Credential rotation drill
- Operational alert drill
- Capacity reports (earlier)
- Schema benchmark report
- Application Note evaluation summary (reproducible via
python -m scripts.eval_application_note) - Deployment review resolution
- Curator usability protocol
MetaHarmonizer is intended for de-identified metadata. Do not upload protected health information, direct identifiers, secrets, or credentials. Production deployments should use HTTPS, strong host-only secrets, restricted registration, encrypted off-host backups, and named operators. Security reports that may contain sensitive information should not be posted to public issues.
Operational defaults and deployment controls are documented in DEPLOY.md and production operations.
Vulnerabilities should be reported through SECURITY.md. Product support boundaries are documented in SUPPORT.md.
See CONTRIBUTING.md, CODE_OF_CONDUCT.md, and GOVERNANCE.md. Notable changes are recorded in CHANGELOG.md.
This project is distributed under the repository license.