UPenn Human Virome Project sample database
git clone https://github.com/Ulthran/hvp_db
cd hvp_db
python -m venv env
source env/bin/activate
pip install -e .[web]The package installs a small CLI named hvp-db.
Initialize a new SQLite database:
hvp-db init sqlite:///hvp.dbLoad samples from a CSV file:
hvp-db load sqlite:///hvp.db samples.csvCSV columns should match the fields of the Sample model and dates must be in
ISO format (YYYY-MM-DD).
Run the Flask site in dev mode:
hvp-db web sqlite:///hvp.db passwordOr put it into production as a system daemon with something like this (make sure to set the env vars HVP_DB_URI and HVP_DB_PASSWORD properly for your daemon):
gunicorn --workers 2 --bind unix:/run/hvp.sock hvp_db/wsgi:app