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.
Release files for cohort-generator 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cohort-generator-0.3.0.tar.gz | 5.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cohort_generator-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.4 kB
Release files / cohort-generator-0.3.0.tar.gz
| Download URL | cohort-generator-0.3.0.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
173d977139e54f30823ef82300184c69e8ded5b2cf163e97b274eef9b0400666
|
|
BLAKE2b-256 checksum How to use checksums |
778c9ce4290ddbe587b472b13fc6fb2b553633f48c19c1fa99f3533960b29061
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / cohort_generator-0.3.0-py3-none-any.whl
| Download URL | cohort_generator-0.3.0-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3dce4663f21176d0aa3d1c1cf00f2f984750097f068dfc33ab64a24585e03d8c
|
|
BLAKE2b-256 checksum How to use checksums |
9811658b111844a77701a0ef84f12a7a5e4580a9cf051587c93c8698716a2143
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|