Skip to content

Repository files navigation

Convert-Pheno Convert-Pheno

A software toolkit for the interconversion of standard data models for phenotypic data

Build and Test Coverage Status CPAN Publish version Docker Build Documentation Status License


📘 Documentation · 💻 Installation · 📓 Google Colab · 📦 CPAN · 🐳 Docker

Convert-Pheno

Convert-Pheno converts clinical and phenotypic records between BFF, Phenopackets (PXF), OMOP-CDM, REDCap, CSV, CDISC formats, FHIR R4, openEHR, cBioPortal, i2b2, PCORnet CDM, and Sentinel CDM.

The command-line interface is the primary interface. The same conversion engine is also available through a Perl module, Python binding, HTTP(s) API, and local graphical Workbench.

Quick Start

convert-pheno -ipxf phenopacket.json -obff individuals.json
convert-pheno -ibff individuals.json -opxf phenopackets.json
convert-pheno -iomop omop-export/ -obff individuals.json --ohdsi-db

Entity-aware BFF output can write individuals, biosamples, datasets, and cohorts when the selected source route supports them:

convert-pheno -ipxf phenopacket.json \
  -obff --entities individuals biosamples datasets cohorts \
  --out-dir bff_out/

See Choose a Conversion for commands by source and target, or run convert-pheno --help for the full CLI option list.

Installation

Local Workbench

From Convert-Pheno 0.35, the Docker image includes a local graphical interface for supported JSON and file-based routes:

docker run --rm \
  --publish 127.0.0.1:8080:8080 \
  manuelrueda/convert-pheno:latest

Open http://127.0.0.1:8080. The Workbench is intended for local use and has a 100 MiB request limit. Use the CLI for streaming or larger inputs.

Tested Examples

Synthetic fixtures under t/ provide tested inputs and reference outputs for the supported conversion routes.

Citation

Rueda, M et al. (2024). Convert-Pheno: A software toolkit for the interconversion of standard data models for phenotypic data. Journal of Biomedical Informatics. https://doi.org/10.1016/j.jbi.2023.104558

Author

Manuel Rueda, PhD. CNAG: https://www.cnag.eu

Releases

Packages

Used by

Contributors

Languages