Ontolopy is a package for working with ontology (.obo) files from Python.
Project description
Ontolopy a python package for working with .obo files
:construction: This package is in development :construction:
Installation
Ontolopy is available on pip, and can be installed using:
pip install ontolopy
Usage
Example usage:
import ontolopy
# read an ontology in obo format
obo = ontolopy.Obo('path_to_file/uberon_ext.obo')
# find relationships between terms of interest:
# (in this case, are any of the source_terms, is_a or part_of the brain?)
source_terms = ['UBERON:0003290','UBERON:0003369','UBERON:0003703']
target_terms = ['UBERON:0000955'] # brain term
relations_of_interest = ['is_a','part_of']
relations = ontolopy.Relations(source_terms,target_terms,relations_of_interest,obo.ont).relations
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
ontolopy-1.0.2b0.tar.gz
(5.9 kB
view hashes)
Built Distribution
Close
Hashes for ontolopy-1.0.2b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5059c9026eae7bad9b7b586531c929dda0e9ccd96d66a7717d93276e8fa76d5 |
|
MD5 | d7539a809c49fc0957296a938214286b |
|
BLAKE2b-256 | c93fc77fdf6e0edf0629d386c3e4786f31e82faec43901d410605e9d24004dad |