Python wrapper for the OHDSI R packages
Project description
python-ohdsi
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
(setR_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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ohdsi-cohort-generator-0.3.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 029ef03ebdb4ed2bfd96de82419745cc3f9b2648cfd2d6f127ffbc054be29028 |
|
MD5 | 622d30925310ee3d559558b2411e3cce |
|
BLAKE2b-256 | 23c599c76866c4f61e3a7055154c4fa688ee2aa8a69dab5791d0cff15a346bbf |
Hashes for ohdsi_cohort_generator-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 655c6e616860f11946188d36c467172c1b335fdd1eb2e9700d29b34e5219197b |
|
MD5 | a76990198fd00de99869f267ea96a160 |
|
BLAKE2b-256 | aa5b36fff4f46ff447c80223f99adb694b796ecaf2c6224d08fb1c82662a43c3 |