From bddd3c0fdb049c50f767d3c1c98c9022c2a68736 Mon Sep 17 00:00:00 2001 From: ivanPozdnyakov Date: Fri, 8 Jan 2016 14:54:09 -0500 Subject: [PATCH] new format for pathfinding, added to service array --- VQI_PathwayEditor.js | 7 +++++-- score_json.txt | 16 +++++++++++++++- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/VQI_PathwayEditor.js b/VQI_PathwayEditor.js index 4663f05..442f656 100755 --- a/VQI_PathwayEditor.js +++ b/VQI_PathwayEditor.js @@ -4,6 +4,9 @@ var VQI_PathwayEditor = function (parent) { // var serverURL = "http://cardinal3.engr.uconn.edu/pathwayVisual/"; var services = {}; + /*Local Services*/ + services["pathwayFinderUrl"] = "score_json.txt"; + /* Yue's Local Server*/ services['pathwayFinder'] = 'http://cardinal3.engr.uconn.edu/pathwayVisual/PathwayParser/ajaxJSON.php'; services['pathwaySaver'] = 'http://cardinal3.engr.uconn.edu/pathwayVisual/PathwayParser/updateDB_json.php'; @@ -17,7 +20,7 @@ var VQI_PathwayEditor = function (parent) { /* BIBCI Server */ // services['pathwayFinder'] = 'http://bibci.engr.uconn.edu/yuz12012/pathwayVisual//PathwayParser/ajaxJSON.php'; -// services['pathwaySaver'] = 'http://bibci.engr.uconn.edu/yuz12012/pathwayVisual//PathwayParser/updateDB_json.php'; +// services['pathwaySaver'] = 'http://bibci.engr.uconn.edu/yuz12012/pathwayVisual//PathwayParser/updateDB_json.php'; // services['pathwayScorer'] = 'http://bibci.engr.uconn.edu/yuz12012/pathwayVisual/ScoreSystem/getScore.php'; // services['pathwayWeightedScorer'] = 'http://bibci.engr.uconn.edu/thh13003/pathway2/pathwayweightedscorer.php'; // services['objectFinder'] = 'http://bibci.engr.uconn.edu/thh13003/pathway2/qsys_json.php'; @@ -1159,7 +1162,7 @@ var VQI_PathwayEditor = function (parent) { var cy = $('#' + parent + '-cy').cytoscape('get'); var sid = orderedSelectedNodes[0]._private.data['id']; var vid = orderedSelectedNodes[1]._private.data['id']; - $.post('score_json.txt', { + $.post(services['pathwayFinderUrl'], { data_json: JSON.stringify(JSON.parse(states[states.length - 1])) }, function (yue_data) { console.log(yue_data); diff --git a/score_json.txt b/score_json.txt index b0a3c6b..23645f7 100644 --- a/score_json.txt +++ b/score_json.txt @@ -10,4 +10,18 @@ "mFDR": 0.00143, "lowp": 1, "consistent_lowp": 0 - }] \ No newline at end of file + }, +{ + "edges": ["e0", "e2", "e8", "e9", "e11", "e15", "e78", "e87"], + "rscore": 0.47222, + "genes": ["BMP", "IGF"], + "source": "n0", + "destination": "n22", + "person": "X1728790", + "pathway": 342, + "mscore": 0, + "mFDR": 0.00143, + "lowp": 1, + "consistent_lowp": 0 + } +] \ No newline at end of file