Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
new format for pathfinding, added to service array
  • Loading branch information
ivp08001 committed Jan 8, 2016
1 parent de634a4 commit bddd3c0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
7 changes: 5 additions & 2 deletions VQI_PathwayEditor.js
Expand Up @@ -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';
Expand All @@ -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';
Expand Down Expand Up @@ -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);
Expand Down
16 changes: 15 additions & 1 deletion score_json.txt
Expand Up @@ -10,4 +10,18 @@
"mFDR": 0.00143,
"lowp": 1,
"consistent_lowp": 0
}]
},
{
"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
}
]

0 comments on commit bddd3c0

Please sign in to comment.