Last updated:
0 purchases
belrepository 0.1.2
A utility for loading data from repositories of BEL documents with PyBEL [1].
Installation
bel_repository can be installed from PyPI with the following command:
$ pip install bel-repository
The latest version can be installed from GitHub with:
$ pip install git+https://github.com/pybel/bel-repository.git
Usage
from typing import Mapping
from bel_repository import BELRepository
from pybel import BELGraph
# Build a repository by giving a folder
bel_repository = BELRepository('/path/to/folder/with/bel/')
# Get a mapping from paths to graphs
graphs: Mapping[str, BELGraph] = bel_repository.get_graphs()
# Get a combine graph
graph: BELGraph = bel_repository.get_graph()
Example BEL Repositories
Each of these repositories has BEL content that can be pip installed:
https://github.com/cthoyt/selventa-knowledge/
https://github.com/pharmacome/conib
https://github.com/hemekg/hemekg
https://github.com/covid19kg/covid19kg
https://github.com/neurommsig-epilepsy/neurommsig-epilepsy
More publicly available BEL content can be found in the listing in
this blog post.
References
[1]
Hoyt, C. T., et al. (2017). PyBEL: a computational framework for Biological Expression
Language. Bioinformatics (Oxford, England), 34(4), 703–704.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.