Skip to content

Instantly share code, notes, and snippets.

@finnagin
Created March 10, 2022 22:41
Show Gist options
  • Save finnagin/47cc99c8cecb854e7a42ead18d31a65e to your computer and use it in GitHub Desktop.
Save finnagin/47cc99c8cecb854e7a42ead18d31a65e to your computer and use it in GitHub Desktop.
A workflowized version of the query in NCATSTranslator/testing#178
{
"workflow": [
{
"id": "fill"
},
{
"id": "overlay_compute_ngd",
"parameters": {
"virtual_relation_label": "NGD1",
"qnode_keys": [
"n00",
"n01"
]
}
},
{
"id": "overlay_compute_ngd",
"parameters": {
"virtual_relation_label": "NGD2",
"qnode_keys": [
"n01",
"n02"
]
}
},
{
"id": "overlay_fisher_exact_test",
"parameters": {
"subject_qnode_key": "n00",
"object_qnode_key": "n01",
"virtual_relation_label": "FET1"
}
},
{
"id": "overlay_fisher_exact_test",
"parameters": {
"subject_qnode_key": "n01",
"object_qnode_key": "n02",
"virtual_relation_label": "FET2"
}
},
{
"id": "complete_results"
},
{
"id": "score"
},
{
"id": "sort_results_score",
"parameters": {
"ascending_or_descending": "descending"
}
}
],
"message": {
"query_graph": {
"edges": {
"e00": {
"subject": "n00",
"object": "n01",
"predicates": [
"biolink:related_to"
]
},
"e01": {
"subject": "n01",
"object": "n02",
"predicates": [
"biolink:related_to"
]
}
},
"nodes": {
"n00": {
"ids": [
"PUBCHEM.COMPOUND:644073"
],
"categories": [
"biolink:ChemicalEntity"
]
},
"n01": {
"categories": [
"biolink:NamedThing"
]
},
"n02": {
"ids": [
"HP:0000217"
],
"categories": [
"biolink:DiseaseOrPhenotypicFeature"
]
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment