Skip to main content

Python wrapper for the OHDSI R packages

Project description

python-ohdsi

PyPI Circe PyPI DatabaseConnector PyPI FeatureExtraction PyPI SQLRender

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 python-ohdsi

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.

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-common-0.3.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

ohdsi_common-0.3.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file ohdsi-common-0.3.1.tar.gz.

File metadata

  • Download URL: ohdsi-common-0.3.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for ohdsi-common-0.3.1.tar.gz
Algorithm Hash digest
SHA256 4e9c946a3efbc504936e4fff925621090636dad8eb20f878642070e01675456a
MD5 a0b6861042d7909d5a4daf7a97a447c1
BLAKE2b-256 11d3fb3c95ab634d517b70b74670076dda1bb1fa4387087df7bf3d6630a84294

See more details on using hashes here.

File details

Details for the file ohdsi_common-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: ohdsi_common-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for ohdsi_common-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 00987b1e48c7f1e97f2847d13d35107aa53e57d1e552201837532eb7e1ee002d
MD5 1b6ba5e107f85f86f4236d48f7a0e71f
BLAKE2b-256 16f90ff5dfcd9b6817ae2f467c454da4c4762d182b638041ff9b4a016c79531a

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