Commit 477edff8 authored by Jean-Clement Gallardo's avatar Jean-Clement Gallardo
Browse files

Simplify header target label (identifier + name)

parent 27f28e57
......@@ -19,12 +19,6 @@ Ext.define('metExploreViz.view.button.buttonImportFlux.ButtonImportFluxControlle
},
scope:me
});
view.on({
test:function(){
console.log("test");
}
})
},
/*****************************************************
......@@ -44,7 +38,7 @@ Ext.define('metExploreViz.view.button.buttonImportFlux.ButtonImportFluxControlle
var targetName = firstLine.splice(0, 1);
var array = [];
if(targetName[0]=="reactionDBIdentifier" || targetName[0]=="reactionId" || targetName[0]=="reactionName") {
if(targetName[0]=="Identifier" || targetName[0]=="reactionId" || targetName[0]=="Name") {
var flux = new Flux(title, firstLine, targetName[0], array);
for (var i = lines.length - 1; i >= 0; i--) {
lines[i] = lines[i].split('\t').map(function (val) {
......
......@@ -31,13 +31,13 @@ metExploreD3.GraphFlux = {
for (var i = 0; i < fluxData.length; i++){
if (targetLabel === "reactionName"){
if (targetLabel === "Name"){
var nodes = networkData.getNodeByName(fluxData[i][0]);
}
if (targetLabel === "reactionId"){
var nodes = networkData.getNodeById(fluxData[i][0]);
}
if (targetLabel === "reactionDBIdentifier"){
if (targetLabel === "Identifier"){
var nodes = networkData.getNodeByDbIdentifier(fluxData[i][0]);
}
......@@ -66,13 +66,13 @@ metExploreD3.GraphFlux = {
for (var i = 0; i < fluxData.length; i++){
if (targetLabel === "reactionName"){
if (targetLabel === "Name"){
var nodes = networkData.getNodeByName(fluxData[i][0]);
}
if (targetLabel === "reactionId"){
var nodes = networkData.getNodeById(fluxData[i][0]);
}
if (targetLabel === "reactionDBIdentifier"){
if (targetLabel === "Identifier"){
var nodes = networkData.getNodeByDbIdentifier(fluxData[i][0]);
}
......@@ -100,13 +100,13 @@ metExploreD3.GraphFlux = {
for (var i = 0; i < fluxData.length; i++){
if (targetLabel === "reactionName"){
if (targetLabel === "Name"){
var nodes = networkData.getNodeByName(fluxData[i][0]);
}
if (targetLabel === "reactionId"){
var nodes = networkData.getNodeById(fluxData[i][0]);
}
if (targetLabel === "reactionDBIdentifier"){
if (targetLabel === "Identifier"){
var nodes = networkData.getNodeByDbIdentifier(fluxData[i][0]);
}
......@@ -151,13 +151,13 @@ metExploreD3.GraphFlux = {
for (var i = 0; i < fluxData.length; i++){
if (targetLabel === "reactionName"){
if (targetLabel === "Name"){
var nodes = networkData.getNodeByName(fluxData[i][0]);
}
if (targetLabel === "reactionId"){
var nodes = networkData.getNodeById(fluxData[i][0]);
}
if (targetLabel === "reactionDBIdentifier"){
if (targetLabel === "Identifier"){
var nodes = networkData.getNodeByDbIdentifier(fluxData[i][0]);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment