Skip to content

InformaticsGenomicMedicine/MolDef-spec-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

MolDef-spec-python is a Python implementation of the HL7 FHIR MolecularDefinition resource, with structured profiles for Allele and Sequence. These profiles apply structural and semantic constraints to the base FHIR MolecularDefinition resource.

This repository contains the core schema for our broader genomics tooling ecosystem, along with example Jupyter notebooks that demonstrate how to create MolecularDefinition, Allele, and Sequence models in Python using pydantic.


Local Setup

Follow these steps to set up the project for local development.

1. Clone the Repository

Make sure you’re logged into GitHub, then clone the repository and navigate into it:

# Clone the repository
git clone https://github.com/yourusername/MolDef-spec-python.git
cd MolDef-spec-python

2. Create and Activate a Virtual Environment

We recommend using Python’s built-in venv module.

python -m venv venv

Activate the virtual environment

  • macOS/Linux
    source venv/bin/activate
  • Windows
    venv\Scripts\activate

3. Install the Package

  • Installation (until the package is published)

    pip install . 
  • Local Development

    pip install -e .[dev]

4. Verify Installation

Confirm the package was installed successfully

pip show fhir.moldef.spec 

Jupyter Notebooks

This repository includes example Jupyter notebooks for exploring and experimenting with the project.


Roadmap & Integration Plans

We are in the process of packaging this repository so it can be installed as a standlone python package. Once published, it will serve as a dependency for MolDef-VRS-Translator, a tool that transaltes between VRS 2.0 Allele and FHIR Allele Profile.

Currently, both the active schema definitions and the translation logic live in the FHIR-MolDef-python project.

We plan to release two packages:

  • Schema (FHIR MolecularDefinition, Allele, and Sequence models)
  • Translator (VRS <-> FHIR model conversions).

This modular approach lets you install only what you need.


Acknowledgments

This project builds on the following packages and resources.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published