Skip to main content

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

  1. Install mysql and libmysqlclient-dev (e.g. sudo apt-get install mysql-server libmysqlclient-dev)

  2. Run python setup.py install (or python setup.py develop inside a virtualenv if developing)

  3. 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’; ``

  1. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

studygovernor-6.0.1.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

studygovernor-6.0.1-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

Details for the file studygovernor-6.0.1.tar.gz.

File metadata

  • Download URL: studygovernor-6.0.1.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.6

File hashes

Hashes for studygovernor-6.0.1.tar.gz
Algorithm Hash digest
SHA256 d0c8cdc723a6c016f7f584ad8f02d7f5ef3859e59a7a99f0efd82e2d880c69b7
MD5 ee9b6df5159464a92d98da8042cb58aa
BLAKE2b-256 53acbe86723b4ef2da89022b37a9432147864464e1c90f2bb591c8ecf4600adc

See more details on using hashes here.

Provenance

File details

Details for the file studygovernor-6.0.1-py3-none-any.whl.

File metadata

  • Download URL: studygovernor-6.0.1-py3-none-any.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.6

File hashes

Hashes for studygovernor-6.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d3404a121f6e848d1140e2256f77a33356341c4d3355013edadbe7ed85ae0198
MD5 2a1dc539c46d612c68848750c9536937
BLAKE2b-256 bd8bc58b04062afdb8daea651b3e760892c29e0b71fb020a8b2ec721ba8343f1

See more details on using hashes here.

Provenance

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