Demo to explore the Vantage6 framework using a relational database to store the node's data.
Run the following command sh start_all.sh
to:
- create the necessary docker volumes
- run the docker-compose file
- set-up the server database
Additionally, it's possible to use the flag -o
(command sh start_all.sh -o
) in order to
import psql files as the databases. It could be used to import more complex databased, such as
the OMOP CDM. Make sure to include both files (maastro.psql
, mumc.psql
) in the folder /db/data
.
The docker-compose file will create:
- a container running a postgres database
- a container running a database manager accessible on
localhost:8080
- the server and two nodes
The docker-compose can be modified to any specific need e.g. having additional nodes.
After successfully starting the services, the vantage6 client can be used to interact with the server.
- Go to the folder /researcher/python
- Execute
sh run.sh
orpython3 run.py
if you have the dependencies already installed in your local python version.
The run.py file contains the actual code as a researcher to execute a train on the infrastructure.
- Go to the folder /researcher/R
- Execute
sh run.sh
The test.r file contains the actual code as a researcher to execute a train on the infrastructure.
Run the following command sh stop_all.sh
to stop and remove the containers, volumes, and networks.
You can login to the shell by using the server/shell.sh script (executing cd server && sh shell.sh
). This will open an IPython shell in the server, were users/nodes/collaborations can be added/modified/added. An example is available in server/setup_fixtures.py.