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.


The Study Governor is documented at

Installation and operation instructions

  1. Install mysql and libmysqlclient-dev (e.g. sudo apt-get install mysql-server libmysqlclient-dev)
  2. Run python install (or python 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'}
>>>'http://localhost:5000/api/v1/subjects', json=sub)
>>> exp = {'label': 'exp_001', 'subject': '/api/v1/subjects/1', 'scandate':}
>>>'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'})

Download files

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

Files for studygovernor, version 6.4.0
Filename, size File type Python version Upload date Hashes
Filename, size studygovernor-6.4.0-py3-none-any.whl (1.4 MB) File type Wheel Python version py3 Upload date Hashes View
Filename, size studygovernor-6.4.0.tar.gz (1.3 MB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page