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.

Citation

If you find PyBEL useful for your work, please consider citing:

Getting Started

This example illustrates how the Selventa Small Corpus can be loaded.

>>> import pybel
>>> 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

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 document is compiled then exported to GraphML for viewing in Cytoscape.

$ pybel compile ~/Desktop/example.bel
$ pybel serialize ~/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:

$ pip install pybel

or from the latest code on GitHub with:

$ pip install git+https://github.com/pybel/pybel.git

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

Uploaded Source

Built Distribution

pybel-0.13.2-py3-none-any.whl (284.7 kB view details)

Uploaded Python 3

File details

Details for the file pybel-0.13.2.tar.gz.

File metadata

  • Download URL: pybel-0.13.2.tar.gz
  • Upload date:
  • Size: 361.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for pybel-0.13.2.tar.gz
Algorithm Hash digest
SHA256 469201a25e77ab2f1519bd36847ca47b061c57243a084e07ea6e69bf0ff1acd6
MD5 7b4f13e3e1b72acf2f754febdc772e2b
BLAKE2b-256 89db4b061fcb7a14618c9598a9e75e5023dc7f1ebc7cb771c159730fb98e5f39

See more details on using hashes here.

Provenance

File details

Details for the file pybel-0.13.2-py3-none-any.whl.

File metadata

  • Download URL: pybel-0.13.2-py3-none-any.whl
  • Upload date:
  • Size: 284.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for pybel-0.13.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7597525a17ee8091c9c8102ef9816a769e5b74b91fa0407a7f69c60aba5a50e7
MD5 be8bd0b3554aa8d7f9608e17a2b52674
BLAKE2b-256 464dc98a24a166d718e485a77ab22910666c59b45cb639ce73fb8368b034c9ef

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