Skip to main content

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:

  1. An adaptor to ensmallen/grape, for performing performance-intensive graph operations
  2. An OAK adapter for handling everything else, including lookup by labels, search, predicate filtering, etc

There are two choices of selector:

  1. grape:kgobo:{go,pato,uberon,...}
  2. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oakx_grape-0.1.1.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

oakx_grape-0.1.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file oakx_grape-0.1.1.tar.gz.

File metadata

  • Download URL: oakx_grape-0.1.1.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for oakx_grape-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8e97271f216f803a51206087f795952381d5cc528803bfa4ccd1293d801b6c5b
MD5 debdf870d919da94b98b409b46cba1ea
BLAKE2b-256 2f8ba465830864f6b1842e14d2194beb8b62c9b466ad0ca9260fef905479af63

See more details on using hashes here.

Provenance

File details

Details for the file oakx_grape-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: oakx_grape-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for oakx_grape-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9d5d1ac82c7315e1a884103677c96eb8df9c34d3bf56602731d5ca068c93ee2b
MD5 58090096b6b1e26c3a5a14298632e66e
BLAKE2b-256 3ad5606708172c9399ccb5302f0f984f0360275454c35a1eb1e98fd79f44a2ec

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page