Commit ca513cb0 authored by maxchaza's avatar maxchaza
Browse files

Add mapping on links when map reactions for MetExplore Mapping

parent 3752e3c9
......@@ -2267,6 +2267,11 @@ metExploreD3.GraphMapping = {
if(node!=undefined){
var mapNode = new MappingData(node, mapping.getName(), condition.name, map.value);
node.addMappingData(mapNode);
links = networkData.getLinkByDBIdReaction(node.getDbIdentifier());
links.forEach(function (link) {
link.addMappingData(mapNode);
})
}
else
{
......@@ -2274,6 +2279,11 @@ metExploreD3.GraphMapping = {
if(node!=undefined){
var mapNode = new MappingData(node, mapping.getName(), condition.name, map.value);
node.addMappingData(mapNode);
links = networkData.getLinkByDBIdReaction(node.getDbIdentifier());
links.forEach(function (link) {
link.addMappingData(mapNode);
})
}
}
});
......@@ -2290,6 +2300,11 @@ metExploreD3.GraphMapping = {
if(node!=undefined){
var mapNode = new MappingData(node, mapping.getName(), condition.name, map.value);
node.addMappingData(mapNode);
links = networkData.getLinkByDBIdReaction(node.getDbIdentifier());
links.forEach(function (link) {
link.addMappingData(mapNode);
})
}
else
{
......@@ -2297,6 +2312,11 @@ metExploreD3.GraphMapping = {
if(node!=undefined){
var mapNode = new MappingData(node, mapping.getName(), condition.name, map.value);
node.addMappingData(mapNode);
links = networkData.getLinkByDBIdReaction(node.getDbIdentifier());
links.forEach(function (link) {
link.addMappingData(mapNode);
})
}
}
});
......@@ -2369,6 +2389,11 @@ metExploreD3.GraphMapping = {
if(node!=undefined){
var mapNode = new MappingData(node, mapping.getName(), condition.name, map.value);
node.addMappingData(mapNode);
links = networkData.getLinkByDBIdReaction(node.getDbIdentifier());
links.forEach(function (link) {
link.addMappingData(mapNode);
})
}
});
});
......@@ -2384,6 +2409,10 @@ metExploreD3.GraphMapping = {
if(node!=undefined){
var mapNode = new MappingData(node, mapping.getName(), condition.name, map.value);
node.addMappingData(mapNode);
links = networkData.getLinkByDBIdReaction(node.getDbIdentifier());
links.forEach(function (link) {
link.addMappingData(mapNode);
})
}
});
});
......
Supports Markdown
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