From 0e772b4a2a08556343dae6637b0cc61c29ec5bce Mon Sep 17 00:00:00 2001 From: Pujan Joshi Date: Fri, 12 Feb 2016 17:25:10 -0500 Subject: [PATCH] some fixes with node, arrow and edge types --- VQI_PathwayEditorGUI.js | 187 +++++++++++++++++++++------------------- 1 file changed, 97 insertions(+), 90 deletions(-) diff --git a/VQI_PathwayEditorGUI.js b/VQI_PathwayEditorGUI.js index bab8ce0..d2547eb 100644 --- a/VQI_PathwayEditorGUI.js +++ b/VQI_PathwayEditorGUI.js @@ -1,28 +1,34 @@ var VQI_PathwayEditorGUI = function (parent) { // Web services - - // var serverURL = "http://cardinal3.engr.uconn.edu/pathwayVisual/"; - - var services = {}; + + // var serverURL = "http://cardinal3.engr.uconn.edu/pathwayVisual/"; + + var services = {}; services["pathwayFinderUrl"] = "http://bibci.engr.uconn.edu/puj07001/pathway_services/find_path_and_score/find_path_and_score.php"; services['pathwayFinder'] = 'http://cardinal3.engr.uconn.edu/pathwayVisual/PathwayParser/ajaxJSON.php'; services['pathwaySaver'] = 'http://cardinal3.engr.uconn.edu/pathwayVisual/PathwayParser/updateDB_json.php'; services['pathwayScorer'] = 'http://cardinal3.engr.uconn.edu/pathwayVisual/ScoreSystem/getScore.php'; services['pathwayWeightedScorer'] = 'http://137.99.11.122/pathway2/pathwayweightedscorer.php'; - services['objectFinder'] = 'http://137.99.11.122/pathway2/qsys_json.php'; -// 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['pathwayScorer'] = 'http://bibci.engr.uconn.edu/yuz12012/pathwayVisual/ScoreSystem/getScore.php'; + services['objectFinder'] = 'http://137.99.11.122/pathway2/qsys_json.php'; + 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['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'; // Globals var self = this; - var definitionHub = {} - definitionHub.nodeTypes = {1:["bundleone"], 2:["bundletwo"], 3:["gene"], 4:["geneproduct"], 5:["protein"], 6:["rna"], 7:["microrna"], 8:["kinase"], 9:["ligand"], 10:["receptor"], 11:["biologicalprocess"], 12:["triangle"], 13:["rectangle"], 14:["circle"], 15:["ellipse"], 16:["pentagon"], 17:["hexagon"], 18:["heptagon"], 19:["octagon"], 20:["star"], 21:["diamond"], 22:["vee"], 23:["rhomboid"], 24:["label"]}; - definitionHub.edgeLineTypes = {1:["solid"], 2:["dashed"], 3:["dotted"]}; - definitionHub.arrowLineTypes = {1:["line"], 2:["activate","arrow"], 3:["inhibit","tbar"], 4:["regulated"]}; + var definitionHub = {} + definitionHub.nodeTypes = { + 1: [1, "bundleone"], 2: [2, "bundletwo"], 3: [3, "gene"], 4: [4, "geneproduct"], 5: [5, "protein"] + , 6: [6, "rna"], 7: [7, "microrna"], 8: [8, "kinase"], 9: [9, "ligand"], 10: [10, "receptor"] + , 11: [11, "biologicalprocess"], 12: [12, "triangle"], 13: [13, "rectangle"], 14: [14, "circle"], 15: [15, "ellipse"] + , 16: [16, "pentagon"], 17: [17, "hexagon"], 18: [18, "heptagon"], 19: [19, "octagon"], 20: [20, "star"] + , 21: [21, "diamond"], 22: [22, "vee"], 23: [23, "rhomboid"], 24: [24, "label"]}; + + definitionHub.edgeLineTypes = {1: [1, "solid"], 2: [2, "dashed"], 3: [3, "dotted"]}; + definitionHub.arrowLineTypes = {1: [1, "line"], 2: [2, "activate", "arrow"], 3: [3, "inhibit", "tbar"], 4: [4, "regulated"]}; var personId = ""; var pathName = ""; var states = []; @@ -182,23 +188,23 @@ var VQI_PathwayEditorGUI = function (parent) { strVar += "
"; strVar += "
"; strVar += "
"; strVar += "
"; - strVar += "
"; + strVar += "
"; strVar += "