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:
Please see the docs for the most up-to-date information:
You can access versioned docs at /versions/{version} like this
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ontolopy-1.1.1b0.tar.gz.
File metadata
- Download URL: ontolopy-1.1.1b0.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1bde78f8ff7be678fb5547fe7c95e6c98448f57a9ca7d44e7725d42d3c1072b1
|
|
| MD5 |
53cf2be2eb5a7f0a16962408dd3de633
|
|
| BLAKE2b-256 |
b696e52b19a53cc31d082715b09c9aca40a215e8f3757dcb29e0a30fa70ba5b7
|
File details
Details for the file ontolopy-1.1.1b0-py3-none-any.whl.
File metadata
- Download URL: ontolopy-1.1.1b0-py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f755af6c61af3e22cc86446ddacd37c36587aab7f4f1d3805a592e20decadef
|
|
| MD5 |
344e3994cc43f4fd23599afb67349743
|
|
| BLAKE2b-256 |
cc3d908c8d367758c6c9d2b0076139761268a2233eb0440f2696524988c013c2
|