Skip to main content

TRAPI → Cypher transpiler

Project description

TRAPI → Cypher transpiler

Test status via GitHub Actions Code coverage on Codecov

Installation

pip install reasoner-transpiler

Usage

from reasoner_transpiler.cypher import get_query

qgraph = {
    "nodes": {
        "diabetes": {
            "ids": ["MONDO:0005148"],
        },
        "phenotype": {
            "categories": ["biolink:PhenotypicFeature"],
        },
    },
    "edges": {
        "has phenotype": {
            "subject": "diabetes",
            "predicates": ["biolink:has_phenotype"],
            "object": "phenotype",
        },
    },
}

cypher = get_query(qgraph)

Biolink Model

This package uses the Biolink Model Toolkit to access the Biolink Model. Optionally, choose a specific version of the Biolink Model with the environment variable BL_VERSION. Otherwise, the latest version used by the Biolink Model Toolkit will be used.

export BL_VERSION=4.1.6

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

reasoner_transpiler-2.3.4.tar.gz (27.1 kB view details)

Uploaded Source

Built Distribution

reasoner_transpiler-2.3.4-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

Details for the file reasoner_transpiler-2.3.4.tar.gz.

File metadata

  • Download URL: reasoner_transpiler-2.3.4.tar.gz
  • Upload date:
  • Size: 27.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for reasoner_transpiler-2.3.4.tar.gz
Algorithm Hash digest
SHA256 c86fcb674303a4e6535da71c851879b94b328863890e78c8d5786eda5b1cf6b4
MD5 63b5fb5c36e3744421f8898dc946fcc9
BLAKE2b-256 721964db3f3abccdb9a533b1e7070afe32de6de46a0ab67d9c69671f84e087c8

See more details on using hashes here.

File details

Details for the file reasoner_transpiler-2.3.4-py3-none-any.whl.

File metadata

File hashes

Hashes for reasoner_transpiler-2.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 868bec9b10aa3729c7d6a7db9ffe172203d15da232c6bb960ae8c3a04ac32b73
MD5 5dd752229506cce6ddb9dfb3cbf29391
BLAKE2b-256 5b46044a5c4aee275631381f18326f2feed06344f133966167fff1a847d3d021

See more details on using hashes here.

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