Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
no GUI, slight change, we still need to add new node types and edge t…
…ypes
  • Loading branch information
Pujan Joshi committed Feb 10, 2016
1 parent d7a0ac9 commit b45bc1e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions VQI_PathwayEditorNoGUI.js
Expand Up @@ -2,7 +2,7 @@ var VQI_PathwayEditorNoGUI = function () {
self = this;
var nodeTypes = ["bundleone", "bundletwo", "gene", "geneproduct", "protein", "rna", "microrna", "kinase", "ligand", "receptor", "biologicalprocess", "triangle", "rectangle", "circle", "ellipse", "pentagon", "hexagon", "heptagon", "octagon", "star", "diamond", "vee", "rhomboid", "label"];
var services = {};
services['pathwayFinder'] = 'http://bibci.engr.uconn.edu/yuz12012/pathwayVisual//PathwayParser/ajaxJSON.php';
services['PATHWAY_LIST'] = 'http://bibci.engr.uconn.edu/yuz12012/pathwayVisual//PathwayParser/ajaxJSON.php';
var nodeCounter = 0;
var edgeCounter = 0;
function preAddProcessing(obj) {
Expand Down Expand Up @@ -112,20 +112,20 @@ var VQI_PathwayEditorNoGUI = function () {
self.sprayColorExternalNoGUI = function (list) {
sprayColorNoGUI(list, self.json);
}

self.getJSON = function () {
return JSON.stringify(self.json);
}

self.loadPathwayExternalNoGUI = function (id, person, f) {
self.loadPathwayExternalNoGUI = function (id, f) {
var callback = f || null;
$.post(services['pathwayFinder'], {
$.post(services['PATHWAY_LIST'], {
pid: id
}, function (data) {
self.json = JSON.parse(data);
setElementsNoGUI(self.json);
if (callback !== null) {
callback(id, person);
callback();
}
});
}
Expand Down

0 comments on commit b45bc1e

Please sign in to comment.