oakx-grape
Project description
oakx-grape
🌳 🍇 Grape wrapper for OAK 🌳 🍇
ALPHA
Usage
Macbook users with M1 processor need to do a few extra steps as follows:
- Download Anaconda.
conda create --name oakx-grape-env python=3.9
conda activate oakx-grape-env
pip install poetry
poetry install
The steps below are common to everyone.
pip install oakx-grape
poetry run runoak -i grape:sqlite:obo:pato relationships --direction both shape
Install NVM + NPM
These instructions help setup nvm and npm on one's system.
Install GraphViz and OboGraphViz
brew install graphviz
npm install -g obographviz
How it works
This plugin implements a grape wrapper. The wrapper in fact wraps two adapters:
- An adaptor to ensmallen/grape, for performing performance-intensive graph operations
- An OAK adapter for handling everything else, including lookup by labels, search, predicate filtering, etc
There are two choices of selector:
grape:kgobo:{go,pato,uberon,...}
grape:OAK-SELECTOR
with the first pattern, the grape graph is loaded from kgobo, and the oak adapter is loaded from semantic sql
with the second, you can most existing existing OAK adapters:
- sqlite/semsql
- obo
- rdf/owl
Note you CANNOT use a backend like ubegraph or bioportal that relies on API calls
The idea is we will be able to run a notebook like this:
https://github.com/INCATools/ontology-access-kit/blob/main/notebooks/Monarch/PhenIO-Tutorial.ipynb
With the semsim part handled by OAK
Acknowledgements
This cookiecutter project was developed from the oakx-plugin-cookiecutter template and will be kept up-to-date using cruft.
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
File details
Details for the file oakx-grape-0.1.0.tar.gz
.
File metadata
- Download URL: oakx-grape-0.1.0.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.9.13 Darwin/21.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2434a173c6507fdc432f5e4c24c3389d4324dfbe9cc186cbd84528216880d47f |
|
MD5 | b2b4462f81d8d16ad0e4754ac7a995bd |
|
BLAKE2b-256 | 22a2bc425d7989506a7330b09e91a19d8ecd2c62fffeb4967f22dfd91f5ca31a |
File details
Details for the file oakx_grape-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: oakx_grape-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.9.13 Darwin/21.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a511351561fbef78ea1a9c320f729072f407188e5ee5f3ca4087c196c92bff56 |
|
MD5 | 07a11803dbd7afa187bf8c9e7ba2f320 |
|
BLAKE2b-256 | 2e62dc9538648a9a14edb75d899cc0b3453ede8607d3eb9899751f6ab929c3e8 |