Skip to content

About

MetaHarmonizer dashboard

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

440 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MetaHarmonizerApp

Application CI Security Gates Container Smoke License

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

Features

  • 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, optional human_only filter).
  • 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.

Architecture

MetaHarmonizer production architecture showing the curator request path, queued ML execution, durable state, engine boundary, external providers, and encrypted backups

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.

Technology

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

Quick Start

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 .env

For 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 --build

Open 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.

Development and Testing

# 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 test

Protected 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.

Documentation

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

Design and contribution

Operational evidence — dated records of exercises actually run

Security and Data Handling

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.

Contributing

See CONTRIBUTING.md, CODE_OF_CONDUCT.md, and GOVERNANCE.md. Notable changes are recorded in CHANGELOG.md.

License and Acknowledgments

This project is distributed under the repository license.

About

MetaHarmonizer dashboard

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages