Skip to main content

Python wrapper for the OHDSI R packages

Project description

python-ohdsi

PyPI Circe PyPI DatabaseConnector PyPI FeatureExtraction PyPI SQLRender PyPI CohortDiagnostics

Python wrappers for (some) OHDSI tools. This project has been initiated for supporting OMOP data sources in vantage6.

Make sure you have a working R environment with the OHDSI packages installed.

Installation

Python binding

Interact with the OMOP database using a python interface.

  • Install Java JDK.
  • Install R: sudo apt-get install r-base (set R_HOME)
  • Install R packages
pip install ohdsi-common
pip install ohdsi-sqlrender
pip install ohdsi-circe
pip install ohdsi-database-connector
pip install ohdsi-feature-extraction
pip install ohdsi-cohort-generator
pip install ohdsi-cohort-diagnostics

API service

Spin up a small webserver next to the OMOP database to allow HTTP requests to the OMOP database. You can use the prebuild image from dockerhub:

docker pull ...
docker run ...

Or you can build the image yourself:

docker build -t ohdsi-api .
docker run -p 5000:5000 ohdsi-api

Or you can run the API service directly from the source code:

pip install -r requirements.txt
python api.py

Building documentation

cd docs
export IGNORE_R_IMPORTS=True
make html
cd docs
Set-Item -Path Env:IGNORE_R_IMPORTS -Value True
make html

or you can use make livehtml to automatically rebuild the documentation when a file is changed.

You can set the IGNORE_R_IMPORTS environment variable to ignore the R imports in the documentation. This is useful when you don't have the R packages installed but want to build the documentation anyway.

Release

make set-version VERSION=x.x.x
  • If you created a new package add it to the Maketools
  • Create release on Github

User Documentation

The user documentation can be found at readthedocs.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ohdsi_circe-0.4.0.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ohdsi_circe-0.4.0-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file ohdsi_circe-0.4.0.tar.gz.

File metadata

  • Download URL: ohdsi_circe-0.4.0.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for ohdsi_circe-0.4.0.tar.gz
Algorithm Hash digest
SHA256 d1e575e41d421b33d86a0283d4048affaea825fc995c0c4d0338cb94e595e6a6
MD5 7a5bed45d4ac793e5fec40736afd4f78
BLAKE2b-256 292a1d25fc07cac2de44f4f5766306208332316eb3799e2202f95a35bb6a20a3

See more details on using hashes here.

File details

Details for the file ohdsi_circe-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ohdsi_circe-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 45a49b9d16c1d6f381bbfa61872b10162b2573b6bf75bcbca2ca0ed0075791a3
MD5 9230c50f9560631b0a58c6aca256558f
BLAKE2b-256 601b41c47e3930aea5305b1bfe721340374dd2366c0627dc45bb6c689cd2bd4f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page