Initial installation¶
Pre-Requisites¶
Install python3.
Install virtual environment and virtualenvwrapper.
Install a database management system that is supported by Django, create and configure a database.
Install and configure the MOSAIC Tools.
Install and configure the MAGPIE Model and Simulation Server.
Install R and the R packages christbald/magpie_api_r, RODBC, ggplot and devtools that are required for the computational analytic in the Research view:
To bootstrap the project¶
Create a clean base environment using virtualenv and virtualenvwrapper outside the project directory:
mkvirtualenv -p /usr/bin/python3 <venv-name>
Install required packages from file
requirements.pip
:pip install -r requirements.pip
Configure the environment by creating and editing the setting file
local.py
orproduction.py
:cp predictDemo/settings/local.py.example predictDemo/settings/local.py
Applying database schema:
python manage.py migrate [--settings=predictDemo.settings.local]
Create a super user with admin privileges:
python manage.py createsuperuser [--settings=predictDemo.settings.local]
Synchronize role permissions with specific settings to admin interface:
python manage.py sync_roles [--settings=predictDemo.settings.local]
Run server:
python manage.py runserver [--settings=predictDemo.settings.local]
To connect the MOSAIC TTP Server¶
Go to Django Admin > Authentication and Authorization > Groups and amend the fields
TTP StudyId
andTTP TargetIDType
to the groups dept_haematology and trial_cml. Both values for each group have to be configured in the dispatcher module of the MOSAIC TTP server.
This can be done:
… by modifying the pre-configured XML entry located in the database
ttp_dispatcher
, tableconfiguration
, columnconfigKey
of the datasetdispatcher.config.1
. For each group, a new study with name<TTP StudyId>
must be added and associated with the corresponding consent, represented as domain in the gICS module of the MOSAIC TTP server, and the organizational entity (identity), represented as domain in the EPIX module of the MOSAIC TTP server.… by adding an entry (alias) for each group in the database
ttp_dispatcher
, tablealias
with values<TTP TargetIDType>
asalias
,system.<TTP TargetIDType>
as value and"PSN"
asaliasContext
. The alias<TTP TargetIDType>
corresponds to the domain in the gPAS module of the MOSAIC TTP server. The domain in gPAS has to be namedsystem.<TTP TargetIDType>
.