Selventa Large and Small Corpora via PyBEL
Project description
Updated versions of the Selventa Small and Large Corpus
Licenses
Code in this repository is licensed under the MIT License
Both the Selvanta Small Corpus and Selventa Large Corpus are distributed under the Creative Commons Attribution-Non-Commercial-ShareAlike 3.0 Unported License.
Installation
selventa_knowledge can be installed from PyPI with:
$ pip install selventa-knowledge
selventa_knowledge can be installed from GitHub with:
$ pip install git+https://github.com/cthoyt/selventa-knowledge.git
Usage
The combine graph can be loaded with:
>>> import selventa_knowledge
>>> graph = selventa_knowledge.get_graph()
If you need granularity, you can load each graph in a dictionary where all of the names of the files creating each graph are the keys and the values are also BEL graphs with:
>>> import selventa_knowledge
>>> graphs = selventa_knowledge.get_graphs()
The functions from each of the previous examples are simply exposing the bound functions from the BELRepository object, which can be accessed with:
>>> import selventa_knowledge
>>> repository = selventa_knowledge.repository
If you want to use this knowledge with INDRA, there’s a method:
>>> import selventa_knowledge
>>> statements = selventa_knowledge.repository.get_indra_statements()
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 selventa_knowledge-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3354933b1f4c213ba4cb17ab595e93f949161464b460a9e8862d44e8ff2920e |
|
MD5 | c7b4ac7b8dc786cbbf1e5746fa74a779 |
|
BLAKE2b-256 | bdf0e5b9897eec2d592cd92ed408569022a916ace10e50208b4f39f90d773ae1 |