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.2.tar.gz (29.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.2-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: reasoner_transpiler-2.4.2.tar.gz
  • Upload date:
  • Size: 29.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.2.tar.gz
Algorithm Hash digest
SHA256 f4ea382545c6ebec5ead353d2b413183156edcf15e624635c37b8b4593e94457
MD5 2d41656a8c0ccd1765ff592b3d9f8f46
BLAKE2b-256 ceac24358bb89cf253e33ffcc01deaab871f0d9261f9a616a403809a1bafea10

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for reasoner_transpiler-2.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a0d7776404768e8d682f4c720124fd68289675ba3862e43e4968e4ba334a1028
MD5 7ddcce4edbb580e6f1418c8db7bf3f44
BLAKE2b-256 3bfe9da69d7a137b093f5c98dd39bfae90fb12f34d630311b27006687cdf3e4c

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