Commit b87d72b8 authored by Maxime Chazalviel's avatar Maxime Chazalviel

Do not count side compounds in the number of neighbour during local filtering

parent fc9a3354
......@@ -86,7 +86,7 @@ metExploreD3.GraphNode = {
showNeighbours: function(node){
var threshold = 9;
var threshold = 7;
var allNodes = d3.select("#viz").select("#D3viz").selectAll("g.node");
......@@ -132,13 +132,15 @@ metExploreD3.GraphNode = {
r.show();
metExploreD3.GraphNode.reactionsNeighbours[r.getDbIdentifier()].substrates.forEach(function(m){
if(m.isHidden()){
addedMetabolite++;
if(!m.getIsSideCompound())
addedMetabolite++;
m.show();
}
});
metExploreD3.GraphNode.reactionsNeighbours[r.getDbIdentifier()].products.forEach(function(m){
if(m.isHidden()){
addedMetabolite++;
if(!m.getIsSideCompound())
addedMetabolite++;
m.show();
}
});
......@@ -211,8 +213,7 @@ metExploreD3.GraphNode = {
.attr('width', 7)
.attr('x', -17)
.attr('y', -19);
var textPosition=(-10-7-textSize/2);
if(textSize>7) textPosition=textPosition-(sizeBodyCircle-7)/2;
......
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