Skip to main content

Parsing, validation, compilation, and data exchange of Biological Expression Language (BEL)

Project description

PyBEL is a pure Python package for parsing and handling biological networks encoded in the Biological Expression Language (BEL). It also facilitates data interchange between common formats and databases such as NetworkX, JSON, CSV, SIF, Cytoscape, CX, NDEx, SQL, and Neo4J.

Its companion package, PyBEL Tools, contains a suite of functions and pipelines for analyzing the resulting biological networks.

We realize there we have a name conflict with the python wrapper for the cheminformatics package, OpenBabel. If you’re looking for their python wrapper, see here.

Stable

Stable Build Status

Stable Windows Build Status

Stable Coverage Status

Stable Documentation Status

Development

Development Build Status

Development Windows Build Status

Development Coverage Status

Development Documentation Status

Citation

If you use PyBEL in your work, please cite:

Getting Started

This example illustrates how the Selventa Small Corpus can be loaded and visualized in a Jupyter Notebook. Note that this requires an extension, the pybel-jupyter repository. This is not included by default because installing the Jupyter and iPython stack has a large footprint.

>>> import pybel, pybel_jupyter
>>> 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_jupyter.to_jupyter(graph)  # Need to pip install pybel-jupyter first

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 Script 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 Apache 2.0 License

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.12.2.tar.gz (337.1 kB view details)

Uploaded Source

Built Distribution

PyBEL-0.12.2-py2.py3-none-any.whl (295.7 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: PyBEL-0.12.2.tar.gz
  • Upload date:
  • Size: 337.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3

File hashes

Hashes for PyBEL-0.12.2.tar.gz
Algorithm Hash digest
SHA256 178e32abac2bdd241d17e9f46b0c364e3472e7a0329a5fd402e419990b6bc408
MD5 0e9ce43f3e3398959bcc043bb65459e1
BLAKE2b-256 3bf16eb89d5011886525804d03a1915f74e66c80efb651964a992df13be241f1

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: PyBEL-0.12.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 295.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.7.0

File hashes

Hashes for PyBEL-0.12.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fdaef7303a038bd7c61a70fa6413c33622eb774c4044514f08d8d011c3fb9acd
MD5 2e8d0e18d199b980a988b64197663c32
BLAKE2b-256 bf9ea5a9052acfd1480ee9ea5c882f47ce8b0b3027b91c1631011a0fc71a5063

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