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 |
||||
Development |
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
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
This package was originally developed as part of the master’s work of Charles Tapley Hoyt at Fraunhofer SCAI.
This software is proudly built with Paul McGuire’s PyParsing package.
Scott Colby designed our logo and provided sage advice
Christian Ebeling for supervision and consultation
Links
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
Built Distribution
Hashes for PyBEL-0.11.8-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fbb69e3c59c5a57488ea963ac57d6c8b46d723fa871386a1b7592070aa3931a |
|
MD5 | f6e2d6f2c0f6445bd601d384cf5a938c |
|
BLAKE2b-256 | 6ea34600228373215386073ce90d271f0ed34637741064d128f6176f6f7319be |