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

Uploaded Python 3

File details

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

File metadata

  • Download URL: reasoner_transpiler-2.4.1.tar.gz
  • Upload date:
  • Size: 29.1 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.1.tar.gz
Algorithm Hash digest
SHA256 6f408f3f1184513c95aec240a8acc08c8792e36c6b2b5891f83d520f54a453a1
MD5 e50fdc187240150d580a115c639b3e20
BLAKE2b-256 447a6e2fce7697598910cfed228e512900c0ce6fc6b06b45a59083378b8eb984

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for reasoner_transpiler-2.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2d9423373ef8fca51d4bb197e65aa1dfffd32cbb148ee0590d3884af03b59b94
MD5 c2b19cc142ec1b1d95e12c6e3f328226
BLAKE2b-256 e590204c370df69ba1f7824402a035b99d31c4f7c59b6ecc0d3ee2e4c1dfe91d

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