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-circe-0.2.4.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

ohdsi_circe-0.2.4-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file ohdsi-circe-0.2.4.tar.gz.

File metadata

  • Download URL: ohdsi-circe-0.2.4.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for ohdsi-circe-0.2.4.tar.gz
Algorithm Hash digest
SHA256 cd006a754743d3c85a2df4d38d54cbb8644dbbbfb4ad15cac5a2436d3127b82f
MD5 fc25172e137d1c90e23ceebfe848ee4c
BLAKE2b-256 2fc9a90b959296369578451028259abdb375d6cd77012f808d8e6a2b048ed613

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ohdsi_circe-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for ohdsi_circe-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 968492d8b341fa06eac41d18353d5a75f66afa3db34f3d57df0c4275fbd9f65a
MD5 1296f044427ec322650e2ef04d638f08
BLAKE2b-256 543e79f54bb70f1e8ac4be46658f7ffb33c5529e8e3c542c0a7d8a08d4ba668c

See more details on using hashes here.

Supported by

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