Skip to main content

A web application exposing core PyBEL functionalities

Project description

An environment for curating, validating, and exploring knowledge assemblies encoded in Biological Expression Language (BEL) to support elucidating disease-specific, mechanistic insight.

Installation

BEL Commons can be installed easily from PyPI with the following code in your favorite shell:

$ pip install bel_commons

Get the latest code on GitHub with:

$ python3 -m pip install git+https://github.com/bel-commons/bel-commons.git

It’s also suggested to use a relational database management system like PostgreSQL and install their corresponding connectors:

$ python3 -m pip install psycopg2-binary

Usage

Run BEL Commons

A test server can be easily run with:

$ bel-commons run

A more powerful server like gunicorn can also be used like:

$ gunicorn bel_commons.wsgi:flask_app

Running with the Parser

To run the parser, you’ll need an instance of a message queue like RabbitMQ (or any other message queue supported by Celery), a results backend like Redis, and a worker. It’s best to run in docker if you want to do this.

Run with Docker

Clone this repo from GitHub

$ git clone https://github.com/bel-commons/bel-commons.git
$ cd bel-commons

Create a file called .env and generate both SECRET_KEY and SECURITY_PASSWORD_SALT.

SECRET_KEY=mypassword
SECURITY_PASSWORD_SALT=mypassword

Run docker compose:

$ docker-compose up

Ports exposed:

  • 5002: BEL Commons web application

  • 5432: PostgreSQL database

Reset the Database

For the times when you just have to burn it down and start over:

  1. bel-commons manage drop will nuke the database and output a user list

  2. bel-commons manage load will automatically add the most recently exported user list

  3. bel-commons manage examples load will automatically load some example networks and data sets

Citation

If you find BEL Commons useful in your work, please consider citing [Hoyt2018] and [Hoyt2017]:

[Hoyt2018]

Hoyt, C. T., Domingo-Fernández, D., & Hofmann-Apitius, M. (2018). BEL Commons: an environment for exploration and analysis of networks encoded in Biological Expression Language. Database, 2018(3), 1–11.

[Hoyt2017]

Hoyt, C. T., Konotopez, A., & Ebeling, C., (2017). PyBEL: a computational framework for Biological Expression Language. Bioinformatics, 34(4), 703–704.

Acknowledgements

Supporters

This project has been supported by several organizations:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bel_commons-0.3.0.tar.gz (3.6 MB view details)

Uploaded Source

Built Distribution

bel_commons-0.3.0-py3-none-any.whl (3.7 MB view details)

Uploaded Python 3

File details

Details for the file bel_commons-0.3.0.tar.gz.

File metadata

  • Download URL: bel_commons-0.3.0.tar.gz
  • Upload date:
  • Size: 3.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for bel_commons-0.3.0.tar.gz
Algorithm Hash digest
SHA256 d243d06a1bb5dbbd7532ca283088ebf6593bd05f4210f7032d2f5a5d3d082c1c
MD5 bf08525736ef573419ad9af92cc481a4
BLAKE2b-256 4f591e68b1565d8114a04358921fe88802cef403858a005d9d0c627efa50a005

See more details on using hashes here.

File details

Details for the file bel_commons-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: bel_commons-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for bel_commons-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3dd5e78aff58098dc1ca3617132a08887567bbafe04830faa30d56e3dee71cc4
MD5 045ac6b03f21b51077bda76fa175ecfa
BLAKE2b-256 388961311e0ea20ad05f3a0350cf470d6fbe602a1f94c751a66187032c3800b3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page