Commit 750b35b5 authored by Jean-Clement Gallardo's avatar Jean-Clement Gallardo
Browse files

add flux load in loadDataFromJSON

parent cbc74ca3
......@@ -1159,6 +1159,22 @@ metExploreD3.GraphMapping = {
}, 1);
}
}
if(mappingJSON.flux !== {}){
var mappingFlux = mappingJSON.flux;
if (mappingJSON.targetLabel === "reactionDBIdentifier"){
var targetLabel = "Identifier";
}
if (mappingJSON.targetLabel === "reactionName"){
var targetLabel = "Name";
}
var flux = new Flux(mappingFlux.name, mappingFlux.conditions, targetLabel, []);
flux.data = mappingFlux.data;
_metExploreViz.addFlux(flux);
metExploreD3.fireEvent("fluxMapping","fileParse");
metExploreD3.fireEvent("fluxMapping","fileLoad");
}
},
/***********************************************
......
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