Skip to content

andersx/pybel-tools

 
 

Repository files navigation

PyBEL Tools Development Build Status Development Coverage Status Development Documentation Status zenodo

PyBEL Tools is a suite of tools built on top of PyBEL to facilitate data management, integration, and analysis.

This package was developed at Fraunhofer SCAI with support from the IMI projects: AETIONOMY and PHAGO.

Installation Current version on PyPI Stable Supported Python Versions Apache 2.0 License

PyBEL Tools can be installed easily from PyPI with the following code in your favorite terminal:

$ python3 -m pip install pybel_tools

or from the latest code on GitHub with:

$ python3 -m pip install git+https://github.com/pybel/pybel-tools.git@develop

Getting Data

Before running the service, some data can be pre-loaded in your cache.

Loading Selventa Corpra

The Selventa Small Corpus and Large Corpus are two example BEL documents distributed by the OpenBEL framework. They are good examples of many types of BEL statements and can be used immediately to begin exploring. Add -v for more logging information during compilation. This is highly suggested for the first run, since it takes a while to cache all of the namespaces and annotations. This only has to be done once, and will be much faster the second time!

Small Corpus:

$ python3 -m pybel_tools ensure small_corpus -v

Large Corpus:

$ python3 -m pybel_tools ensure large_corpus -v

Uploading Precompiled BEL

A single network stored as a PyBEL gpickle can quickly be uploaded using the following code:

$ python3 -m pybel_tools io upload -p /path/to/my_network.gpickle

More examples of getting data into the cache can be found here.

Web Services

PyBEL Tools deploys a Flask web application that allows you to interact with your networks and apply filters/algorithms.

Multiple services are available. Use --help for a description. To run the web services, type:

$ python3 -m pybel_tools web

By default, Flask deploys on localhost at port 5000. These can be changed respectively with the --host and --port arguments. Additionally, logging can be shown with -v. More documentation on the web services can be found here.

Documentation and Examples

About

A Python package for analyzing BEL graphs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 67.8%
  • HTML 22.0%
  • JavaScript 9.5%
  • Other 0.7%