Skip to main content

Parsing, validation, and data exchange of BEL graphs

Project description

PyBEL is a Python package for compilation and validation of biological networks encoded in the Biological Expression Language (BEL). It also facilitates data interchange between common formats and databases such as NetworkX, JSON, CSV, Excel, Cytoscape, CX, NDEx, SQL, and Neo4J. Its companion package, PyBEL Tools, contains a suite of functions and workflows for analyzing the resulting biological networks.

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

Getting Started

In this example, the Selventa Small Corpus is loaded and visualized in a Jupyter Notebook.

>>> import pybel, pybel_tools
>>> graph = pybel.from_url('http://resources.openbel.org/belframework/20150611/knowledge/small_corpus.bel')
>>> graph.number_of_nodes()  # Will be smaller than expected because we have the most strict settings enabled
1207
>>> pybel_tools.visualization.to_jupyter(graph)

More examples can be found in the documentation and in the PyBEL Notebooks repository.

PyBEL also installs a command line interface with the command pybel for simple utilities such as data conversion. In this example, a BEL file is exported to GraphML for viewing in Cytoscape.

$ pybel convert --path ~/Desktop/example.bel --graphml ~/Desktop/example.graphml

In Cytoscape, open with Import > Network > From File.

Installation Current version on PyPI Stable Supported Python Versions

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

$ python3 -m pip install pybel

or from the latest code on GitHub with:

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

See the installation documentation for more advanced instructions. Also, check the change log at CHANGELOG.rst.

Contributing

Contributions, whether filing an issue, making a pull request, or forking, are appreciated. See CONTRIBUTING.rst for more information on getting involved. Please add your name to AUTHORS.rst!

Acknowledgements

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

PyBEL-0.5.7.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

PyBEL-0.5.7-py2.py3-none-any.whl (101.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file PyBEL-0.5.7.tar.gz.

File metadata

  • Download URL: PyBEL-0.5.7.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for PyBEL-0.5.7.tar.gz
Algorithm Hash digest
SHA256 8625854882c767e07f64f8201c1137a72ed5696987e35ea9b62931e814e37131
MD5 12276ba262189b6173b6ed5bafd13a52
BLAKE2b-256 8d07740ec32d0357f1408a2e57832610ef480f532ceb90226071ee752b078e5c

See more details on using hashes here.

Provenance

File details

Details for the file PyBEL-0.5.7-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for PyBEL-0.5.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 151cfbc41f335b270b3db834effc260976ef83f048bb08ef4817c909084c0da9
MD5 1e6d1692833b28953a8ff22d56b18590
BLAKE2b-256 78561a9742fe6c4decb6ba77806ee6157b0acbd0d7285bfd669907c00b66f33c

See more details on using hashes here.

Provenance

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