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/
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
File details
Details for the file studygovernor-6.3.0.tar.gz
.
File metadata
- Download URL: studygovernor-6.3.0.tar.gz
- Upload date:
- Size: 1.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7716c13358db80ca07c243837c3cff84b5bf90e797171f6b9cea0e930dcb3ef |
|
MD5 | af1f8e99d6884c40eb405646b2d0686b |
|
BLAKE2b-256 | e709e43b19bd31476f6b0727f48f80c96e09a8a3b576e9410d4e952ae38216af |
Provenance
File details
Details for the file studygovernor-6.3.0-py3-none-any.whl
.
File metadata
- Download URL: studygovernor-6.3.0-py3-none-any.whl
- Upload date:
- Size: 1.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f396dd5fe2fa02e41caee1792c1eba6126eb2431d7ccf62aca56965fc6e27e4b |
|
MD5 | 90da1959201797e687ebeb49704e6db7 |
|
BLAKE2b-256 | d3268e54ea7fc2ab5e7983e8cf78ead0692e9b9851b416e3dffd8e8065ad763c |