in progress...
- Install and run postgresql
- Create a database named 'trialstreamer'
- Make a copy of config.json.example to config.json, and populate
- Download RobotReviewer, and follow installation instructions (https://github.com/ijmarshall/robotreviewer)
- Run RobotReviewer in the REST API mode
- Run the following code to classify PubMed (typically 20 hours with GPU).
This requires a proper setting of
ictrp_retrieval_path,pubmed_local_data_pathandpubmed_user_emailconfiguration variables.
from trialstreamer import pubmed
pubmed.download_ftp_baseline()
- run
python -m trialstreamerto start the server onlocalhost:5000
Create a .env file from the .envTemplate file provided. Then, fill in the environment variables.
NOTE: If a variable with the prefix TRIALSTREAMER_ was also defined in the config.json file, the environment variable will overwrite it.
Make sure the pubmed_local_data_path configured at config.json exists and is the same as the one used as the volumes
specified in docker compose files. It is recommended that this path is not located under trialstreamer folder.
To start the Trialstreamer API and Updates Crontab services, run the following commands after RobotReviewer is already running:
docker-compose build
docker-compose up -d
or, as a single command:
docker-compose up --build -d
If RobotReviewer is not running with docker-compose, you will have to create the network robotreviewer_default with:
docker network create robotreviewer_default
docker-compose -f docker-compose.dev.yml up --build -d
The development mode allows reloading the app when changes are detected, but the update script is not run automatically. However, the update script can be ran directly in the API docker container if necessary using the following command:
docker exec -ti trialstreamer_api_1 python update.py --source=<pubmed|medrxiv>