Giter Club home page Giter Club logo

vantage6-rdb-demo's Introduction

Vantage6 RDB Demo

Demo to explore the Vantage6 framework using a relational database to store the node's data.

Usage

Spin up the infrastructure

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.

Client

After successfully starting the services, the vantage6 client can be used to interact with the server.

Example in Python

  1. Go to the folder /researcher/python
  2. Execute sh run.sh or python3 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.

Example in R (Not tested yet)

  1. Go to the folder /researcher/R
  2. Execute sh run.sh

The test.r file contains the actual code as a researcher to execute a train on the infrastructure.

Stop the infrastructure

Run the following command sh stop_all.sh to stop and remove the containers, volumes, and networks.

How to configure additional stations/users in the central station?

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.

vantage6-rdb-demo's People

Contributors

jvsoest avatar

Watchers

Rianne Fijten avatar Andre Dekker avatar  avatar Leonard Wee avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.