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

Uploaded Source

Built Distribution

reasoner_transpiler-2.3.3-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: reasoner_transpiler-2.3.3.tar.gz
  • Upload date:
  • Size: 27.2 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.3.tar.gz
Algorithm Hash digest
SHA256 241a08d5d87c7c19c6cba1976424e496c8d76fee75f46070940d284b5aa7a126
MD5 5061aced81f5b0bbe14c185a82cc81b1
BLAKE2b-256 56878e3af93f3da9376fb595f4ba0957bdc92fd4839c479f8056134aafd64f7f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for reasoner_transpiler-2.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d677a49ddc7617f1b5bce13882c3674e5458225b5f30721258a020c8657e2f45
MD5 221a936789e2771d80eaae55193950aa
BLAKE2b-256 bffe0d099d96abe0a7237c1093d0e266ea59ef7573147eed861e8742fa4a2750

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