Skip to content

theislab/ehrapy

Repository files navigation

Build Codecov License PyPI Python Version Read the Docs Test pre-commit

ehrapy logo

ehrapy overview

ehrapy is a modular open-source Python framework for exploratory analysis of heterogeneous epidemiological and EHR data. It supports a full pipeline from data ingestion and quality control to advanced analyses such as clustering, survival, trajectory, causal inference, deep learning, and more.

fig1

Documentation

Please read the documentation for installation, tutorials, use cases, and more.

Installation

You can install ehrapy via pip from PyPI:

$ pip install ehrapy

API

Please have a look at the API documentation and the tutorials.

import ehrapy as ep

Citation

Heumos, L., Ehmele, P., Treis, T. et al. An open-source framework for end-to-end analysis of electronic health record data. Nat Med (2024). https://doi.org/10.1038/s41591-024-03214-0.