Study Governor is a controller for data in large population imaging studies.
Project description
Study Governor is a controller for data in large population imaging studies.
Documentation
The Study Governor is documented at https://idsp-study-governor.readthedocs.io/
Setting up development environment for kubernetes
You need a number of tools to start developing for the Study Governor on kubernetes locally.
Docker: https://www.docker.com/
k3d: https://k3d.io
helm: https://helm.sh/
Tilt: https://tilt.dev/
Installation and operation instructions
Install mysql and libmysqlclient-dev (e.g. sudo apt-get install mysql-server libmysqlclient-dev)
Run python setup.py install (or python setup.py develop inside a virtualenv if developing)
Create the database in the following way:
`` # Go the mysql command line (add the -p if you have set a root password). $ sudo mysql (-p)
# Create user mysql> CREATE USER ‘studygovernor’@’localhost’ IDENTIFIED BY ‘blaat123’;
# Create database mysql> CREATE DATABASE studygovernor;
# Grant all permissions of the database to the user. mysql> GRANT ALL ON studygovernor.* TO ‘studygovernor’@’localhost’; ``
Run studygov-db-init to initialize the database.
Adding some stuff via REST
>>> sub = {'label': 'sub_001', 'date_of_birth': '2000-12-25'} >>> requests.post('http://localhost:5000/api/v1/subjects', json=sub) >>> exp = {'label': 'exp_001', 'subject': '/api/v1/subjects/1', 'scandate': datetime.datetime.now().isoformat()} >>> requests.post('http://localhost:5000/api/v1/experiments', json=exp) >>> requests.get('http://localhost:5000/api/v1/experiments/1/state') >>> requests.put('http://localhost:5000/api/v1/experiments/1/state', json={'state': '/api/v1/states/3'})
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 studygovernor-7.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13bec405d44c8223e83a8a6427d0e31d4a6444ae5f94142e9400bea535c1e281 |
|
MD5 | e94e7fee138fd33377eb7de0a2afe072 |
|
BLAKE2b-256 | b1743142792e984aa29d74d29668ede1d8c329be9f4aaf220e5d14b9deefe674 |