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.4.0.tar.gz (28.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reasoner_transpiler-2.4.0-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: reasoner_transpiler-2.4.0.tar.gz
  • Upload date:
  • Size: 28.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for reasoner_transpiler-2.4.0.tar.gz
Algorithm Hash digest
SHA256 8bfb4e0bc6480ccf4b55a7f7b7f00e95614c160b4fe5fe5da629d941705f4e83
MD5 bffe4c38ee2cf47a8f03f05abf5f8c9b
BLAKE2b-256 1715bbfbf5a4333bcdf10b7ad9237ed30779f5b8d9b3c369d11570f35722192d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for reasoner_transpiler-2.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2c9157dcd88c294985bb56e911210f76d6dfefde9abfebeabaef6d18199c0e7f
MD5 f1827507ab70c42da6b76a2ce1011038
BLAKE2b-256 a0dfcc6ba390860e80531b7d19d103429634e63be167fdf2e6347abf68af9ca6

See more details on using hashes here.

Supported by

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