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.4.2.tar.gz
(29.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4ea382545c6ebec5ead353d2b413183156edcf15e624635c37b8b4593e94457
|
|
| MD5 |
2d41656a8c0ccd1765ff592b3d9f8f46
|
|
| BLAKE2b-256 |
ceac24358bb89cf253e33ffcc01deaab871f0d9261f9a616a403809a1bafea10
|
File details
Details for the file reasoner_transpiler-2.4.2-py3-none-any.whl.
File metadata
- Download URL: reasoner_transpiler-2.4.2-py3-none-any.whl
- Upload date:
- Size: 21.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0d7776404768e8d682f4c720124fd68289675ba3862e43e4968e4ba334a1028
|
|
| MD5 |
7ddcce4edbb580e6f1418c8db7bf3f44
|
|
| BLAKE2b-256 |
3bfe9da69d7a137b093f5c98dd39bfae90fb12f34d630311b27006687cdf3e4c
|