Skip to content

Commit

Permalink
temporary empty entry saved as 0
Browse files Browse the repository at this point in the history
  • Loading branch information
ivp08001 committed Jan 6, 2016
1 parent 56ab1b3 commit 26a15e9
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions VQI_PathwayEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -599,9 +599,15 @@ var VQI_PathwayEditor = function (parent) {
var cy = $('#' + parent + '-cy').cytoscape('get');
for (var line = 1; line < lines.length; line++) {
var target = cy.elements("node[name = \"" + lines[line][0] + "\"]");
var mut = lines[line][1];
var cnv = lines[line][2];
var rna = lines[line][3];
var mut = 0;
var cnv = 0;
var rna = 0;
if(lines[line][1] != "")
mut = lines[line][1];
if(lines[line][2] != "")
cnv = lines[line][2];
if(lines[line][3] != "")
rna = lines[line][3];
target.data('rna', rna);
target.data('cnv', cnv);
target.data('mut', mut);
Expand Down

0 comments on commit 26a15e9

Please sign in to comment.