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

Uploaded Source

Built Distribution

reasoner_transpiler-2.3.1-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for reasoner_transpiler-2.3.1.tar.gz
Algorithm Hash digest
SHA256 ff86a11b1f391dac933d26fb91cbc4ae818b54c0a08058659b43e006d3b7ef35
MD5 2dd1c766b180a314fbcd45bd3e02dd9a
BLAKE2b-256 debce74c4c1c0135f7813fb17d3a798d36ff98877940ee86741e98f5c605b9d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for reasoner_transpiler-2.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 615f4c904b1867126dd2eee1f6da4664a8ef0e7d9930685254f462f8d2bb6a15
MD5 54efde46774d7167f0d89a467383a70c
BLAKE2b-256 cba75093427e8126b6a10c2e17c55b19b50a08abb137b9b73d0c70b3b0a25d78

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