Skip to content

Instantly share code, notes, and snippets.

@dkoslicki
Created June 24, 2022 18:26
Show Gist options
  • Save dkoslicki/44c3352a2b86d214e4fe104e5ab2ac47 to your computer and use it in GitHub Desktop.
Save dkoslicki/44c3352a2b86d214e4fe104e5ab2ac47 to your computer and use it in GitHub Desktop.
{
"workflow": [
{
"id": "fill",
"parameters": { "allowlist": ["infores:cohd"],
"qedge_keys": [
"e0"
]
}
},
{
"id": "overlay_compute_ngd",
"parameters": {
"virtual_relation_label": "N1",
"qnode_keys": [
"n0",
"n1"
]
}
},
{
"id": "bind"
},
{
"id": "score"
},
{
"id": "filter_results_top_n",
"parameters": {
"max_results": 3
}
},
{
"id": "fill",
"parameters": { "allowlist": ["infores:rtx-kg2"],
"qedge_keys": [
"e1",
"e2",
"e3",
"e4"
]
}
},
{
"id": "bind"
},
{
"id": "score"
}
],
"message": {
"query_graph": {
"edges": {
"e0": {
"subject": "n0",
"object": "n1",
"predicates": [
"biolink:has_real_world_evidence_of_association_with"
]
},
"e1": {
"subject": "n1",
"object": "n2",
"predicates": [
"biolink:increases_activity_of"
]
},
"e2": {
"subject": "n3",
"object": "n2",
"predicates": [
"biolink:increases_activity_of"
]
},
"e3": {
"subject": "n1",
"object": "n2",
"predicates": [
"biolink:decreases_activity_of"
],
"option_group_id": "decr"
},
"e4": {
"subject": "n3",
"object": "n2",
"predicates": [
"biolink:decreases_activity_of"
],
"option_group_id": "decr"
}
},
"nodes": {
"n0": {
"ids": [
"MONDO:0009061"
],
"is_set": false,
"name": "MONDO:0009061"
},
"n1": {
"is_set": false,
"categories": [
"biolink:ChemicalEntity"
]
},
"n2": {
"is_set": false,
"categories": [
"biolink:Gene",
"biolink:Protein"
]
},
"n3": {
"is_set": false,
"categories": [
"biolink:ChemicalEntity"
]
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment