greenelab / connectivity-search-backend

Django backend for hetnet connectivity search
https://search-api.het.io
BSD 3-Clause "New" or "Revised" License
6 stars 2 forks source link

get_paths endpoint: add hetio-derived info #38

Closed dhimmel closed 5 years ago

dhimmel commented 5 years ago

As of https://github.com/greenelab/hetmech-backend/pull/38/commits/dd707c9d9f5487ffb9c8a479833a21b24b329f44, here's the api output:

```json { "query": { "source": "DB01156", "target": "DOID:0050742", "metapath": "CbGiGaD", "metapath_id": [ [ "Compound", "Gene", "binds", "both" ], [ "Gene", "Gene", "interacts", "both" ], [ "Gene", "Disease", "associates", "both" ] ], "limit": 100 }, "paths": [ { "metapath": "CbGiGaD", "node_ids": [ 43315, 32786, 41662, 1410 ], "rel_ids": [ 1923805, 1615085, 309879 ], "PDP": 0.004682929057908469, "percent_of_DWPC": 95.77866787048912 }, { "metapath": "CbGiGaD", "node_ids": [ 43315, 44251, 28797, 1410 ], "rel_ids": [ 309501, 95988, 159590 ], "PDP": 0.00020639459006779496, "percent_of_DWPC": 4.221332129510869 } ], "nodes": { "1410": { "neo4j_id": 1410, "node_label": "Disease", "data": { "name": "nicotine dependence", "source": "Disease Ontology", "identifier": "DOID:0050742", "url": "http://purl.obolibrary.org/obo/DOID_0050742", "license": "CC BY 3.0" }, "metanode": "Disease" }, "28797": { "neo4j_id": 28797, "node_label": "Gene", "data": { "name": "DRD2", "source": "Entrez Gene", "identifier": 1813, "url": "http://identifiers.org/ncbigene/1813", "description": "dopamine receptor D2", "license": "CC0 1.0", "chromosome": "11" }, "metanode": "Gene" }, "32786": { "neo4j_id": 32786, "node_label": "Gene", "data": { "name": "CHRNA3", "source": "Entrez Gene", "identifier": 1136, "url": "http://identifiers.org/ncbigene/1136", "description": "cholinergic receptor, nicotinic, alpha 3 (neuronal)", "license": "CC0 1.0", "chromosome": "15" }, "metanode": "Gene" }, "41662": { "neo4j_id": 41662, "node_label": "Gene", "data": { "name": "CHRNB4", "source": "Entrez Gene", "identifier": 1143, "url": "http://identifiers.org/ncbigene/1143", "description": "cholinergic receptor, nicotinic, beta 4 (neuronal)", "license": "CC0 1.0", "chromosome": "15" }, "metanode": "Gene" }, "43315": { "neo4j_id": 43315, "node_label": "Compound", "data": { "name": "Bupropion", "source": "DrugBank", "identifier": "DB01156", "url": "http://www.drugbank.ca/drugs/DB01156", "license": "CC BY-NC 4.0", "inchi": "InChI=1S/C13H18ClNO/c1-9(15-13(2,3)4)12(16)10-6-5-7-11(14)8-10/h5-9,15H,1-4H3", "inchikey": "InChIKey=SNPPWIUOZRMYNY-UHFFFAOYSA-N" }, "metanode": "Compound" }, "44251": { "neo4j_id": 44251, "node_label": "Gene", "data": { "name": "SLC6A3", "source": "Entrez Gene", "identifier": 6531, "url": "http://identifiers.org/ncbigene/6531", "description": "solute carrier family 6 (neurotransmitter transporter), member 3", "license": "CC0 1.0", "chromosome": "5" }, "metanode": "Gene" } }, "relationships": { "95988": { "neo4j_id": 95988, "rel_type": "INTERACTS_GiG", "source_neo4j_id": 28797, "target_neo4j_id": 44251, "data": { "sources": [ "II_literature", "hetio-dag" ], "unbiased": false }, "kind": "interacts", "directed": true }, "159590": { "neo4j_id": 159590, "rel_type": "ASSOCIATES_DaG", "source_neo4j_id": 1410, "target_neo4j_id": 28797, "data": { "license": "CC BY 4.0", "sources": [ "DISEASES" ], "unbiased": false }, "kind": "associates", "directed": true }, "309501": { "neo4j_id": 309501, "rel_type": "BINDS_CbG", "source_neo4j_id": 43315, "target_neo4j_id": 44251, "data": { "urls": [ "https://www.ebi.ac.uk/chembl/compound/inspect/CHEMBL1698" ], "affinity_nM": 734.02707, "license": "CC BY-SA 3.0", "actions": [ "inhibitor" ], "unbiased": false, "sources": [ "ChEMBL", "DrugBank (target)", "DrugCentral (ChEMBL)", "PDSP Ki" ], "pubmed_ids": [ "11752352", "12183670", "12185406", "12431845", "12589396", "14550679", "15361919", "15787205", "19442525", "19821577", "8302271", "9537821" ] }, "kind": "binds", "directed": true }, "309879": { "neo4j_id": 309879, "rel_type": "ASSOCIATES_DaG", "source_neo4j_id": 1410, "target_neo4j_id": 41662, "data": { "license": "CC BY 4.0", "sources": [ "DISEASES" ], "unbiased": false }, "kind": "associates", "directed": true }, "1615085": { "neo4j_id": 1615085, "rel_type": "INTERACTS_GiG", "source_neo4j_id": 32786, "target_neo4j_id": 41662, "data": { "sources": [ "II_literature", "hetio-dag" ], "unbiased": false }, "kind": "interacts", "directed": true }, "1923805": { "neo4j_id": 1923805, "rel_type": "BINDS_CbG", "source_neo4j_id": 43315, "target_neo4j_id": 32786, "data": { "license": "CC BY-NC 4.0", "actions": [ "antagonist" ], "unbiased": false, "sources": [ "DrugBank (target)" ], "pubmed_ids": [ "10991997", "9862757" ] }, "kind": "binds", "directed": true } } } ```