Skip to content

InformaticsGenomicMedicine/FHIR-MolDef-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

424 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

Welcome to the FHIR-MolDef-python repository! This repository provides a Python-based implementation of the HL7 (Health Level Seven) Fast Healthcare Interoperability Resources (FHIR) Molecular Definition standard. It enables you to create instances of the MolecularDefinition resource and currently supports three profiles: Sequence,Allele, and Variant. A profile in FHIR is a structured extension of a resource that defines specific constraints and usage guidelines for particular use cases.

Additionally, this repository facilitates seamless, bidirectional translation between Global Alliance for Genomics and Health (GA4GH) Variant Representation Specification (VRS) Alleles (v2.0) and the FHIR Allele Profile, ensuring interoperability between these two standards.

Disclaimer

NOTE: This page may occasionally be unavailable due to active development. If so, please try again later, as this downtime is beyond our group's control.

Core Functionality

Category Currently Supports
Resource HL7 FHIR MolecularDefinition resource generation
Profiles Sequence, Allele, and Variant profiles
Translation Bidirectional VRS 2.0 translations (full + minimal)
Notebooks Interactive Jupyter notebooks with examples (see the Notebooks README for details)
Pipeline Extract VRS Allele objects from ClinVar variation files and translate them into the FHIR Allele Profile

Installation Status

  • This package is not currently published on PyPI, but we plan to make it available soon. In the meantime, clone the repository and follow the instructions below to work with the code locally.

Prerequisites

  • Python 3.11 or Higher: This package requires Python 3.11 or a newer version. Please ensure it is installed on your machine.
  • Virtual Environment (Recommended): Using a virtual environment is highly recommended to isolate dependencies for this project.

Dependencies & Infrastructure

  • This package currently relies on a local installation of SeqRepo, which is required to perform the bidirectional translations.
  • We are in the process of writing documentation for installing SeqRepo locally, as well as providing a docker-compose.yml configuration to run SeqRepo (and future UTA support) in a containerized environment.

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:

git clone https://github.com/YourUsername/FHIR-MolDef-python.git
cd FHIR-MolDef-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-python

Contributing

  • Contributions are highly appreciated! Feel free to fork the repository and submit a pull request with your changes. You can also report issues or suggest improvements by opening an issue in the tracker. Thank you for your support!

Acknowledgments

This project relies on the following packages and resources. We extend our gratitude to their respective developers and contributors for making these tools freely available:

About

A Python implementation of HL7 FHIR Molecular Definition.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •