Skip to main content

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.

Metadata

Release files for oakx-grape 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for oakx-grape 0.1.2
File Size Uploaded Provenance
oakx_grape-0.1.2.tar.gz 8.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for oakx-grape 0.1.2
File Interpreter ABI Platform
oakx_grape-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 18.0 kB

Release files / oakx_grape-0.1.2.tar.gz

Download URL oakx_grape-0.1.2.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f8b518e749d755132842140613957295836ca16426ffa33032d4598b4bc2d28d
BLAKE2b-256 checksum
How to use checksums
e996da7be7381efafe6e21e51a739780f3cbe502e4e9eb12a71c5e654fc4fb98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Release files / oakx_grape-0.1.2-py3-none-any.whl

Download URL oakx_grape-0.1.2-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
79d8c077570b1467098f0dc93e7b18835b284328db27d9ed8fc0f74b6aae898d
BLAKE2b-256 checksum
How to use checksums
aeaaa540c433e8c6be6b4760cb8970d4171f8bb6e8cdf80474e3b31f24cec7ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Security for oakx-grape 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page