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.

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

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

Uploaded Source

Built Distribution

PyBEL-0.11.6-py2.py3-none-any.whl (273.2 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: PyBEL-0.11.6.tar.gz
  • Upload date:
  • Size: 316.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for PyBEL-0.11.6.tar.gz
Algorithm Hash digest
SHA256 1d3442fba864d12f32faf687446660a0e5e266f0041496d6ede522dff4658000
MD5 aed9fc5567dad60d7b6660516ebda138
BLAKE2b-256 df9c2271b63958dc30b135967efef4b269fa4827576360936ac96db7052dd9ec

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for PyBEL-0.11.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7d48cb1a87b1287ec2850b329cce5f016eb2ac8bb2bcc6e97da08a37aeb93447
MD5 a3e9d7a6e729c4f519d3dba44a7781a2
BLAKE2b-256 912f78ffa8e681c2eef1c83d0267a77122aede87f8d369217018df6183934924

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