TRAPI → Cypher transpiler
Project description
TRAPI → Cypher transpiler
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
Release history Release notifications | RSS feed
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.4.tar.gz
(27.1 kB
view details)
Built Distribution
File details
Details for the file reasoner_transpiler-2.3.4.tar.gz
.
File metadata
- Download URL: reasoner_transpiler-2.3.4.tar.gz
- Upload date:
- Size: 27.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c86fcb674303a4e6535da71c851879b94b328863890e78c8d5786eda5b1cf6b4 |
|
MD5 | 63b5fb5c36e3744421f8898dc946fcc9 |
|
BLAKE2b-256 | 721964db3f3abccdb9a533b1e7070afe32de6de46a0ab67d9c69671f84e087c8 |
File details
Details for the file reasoner_transpiler-2.3.4-py3-none-any.whl
.
File metadata
- Download URL: reasoner_transpiler-2.3.4-py3-none-any.whl
- Upload date:
- Size: 20.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 868bec9b10aa3729c7d6a7db9ffe172203d15da232c6bb960ae8c3a04ac32b73 |
|
MD5 | 5dd752229506cce6ddb9dfb3cbf29391 |
|
BLAKE2b-256 | 5b46044a5c4aee275631381f18326f2feed06344f133966167fff1a847d3d021 |