MaayanLab / covid19_crowd_library

COVID-19 Crowd Generated Gene and Drug Set Library

Home Page:https://amp.pharm.mssm.edu/covid19/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

covid19

An interface to submit, serve, and analyze COVID19 related gene and drug sets.

Development

The entrypoint of the application is in covid19/app/app.py; do not change the name of the file or directory.

Getting Started

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Running in development

source venv/bin/activate
python run.py

And visit http://localhost:8080/covid19.

Installing new dependencies

Python dependencies

Ensure you update requirements.txt whenever installing a new dependency with pip.

System dependencies

In the case of extra (debian) system dependencies, add them to deps.txt.

Database

The .env.example and docker-compose.yml can be used to establish a local database.

  • docker-compose up -d database: will start the database
  • alembic current: will show you the current migrations on the active database (defined in .env)
  • alembic upgrade +1: apply single database migration on the active database (defined in .env)
  • alembic upgrade head: apply all database migrations on the active database (defined in .env)
  • alembic downgrade -1: revert database migrations on the active database (defined in .env)
  • python ./manage.py dump > your_data.dump: Dump the contents of the database to a file
  • python ./manage.py load < your_data.dump: Load contents of the database from a file

Testing

Run pytest in the root folder to run unit tests.

Deployment

Build for deployment

docker-compose build app

Deploy

docker-compose push app

Execute locally

docker-compose run app

About

COVID-19 Crowd Generated Gene and Drug Set Library

https://amp.pharm.mssm.edu/covid19/

License:Other


Languages

Language:Python 35.8%Language:HTML 30.8%Language:JavaScript 26.6%Language:CSS 6.0%Language:Shell 0.6%Language:Dockerfile 0.2%Language:Mako 0.1%