Commit 7096b736 authored by Maxime Chazalviel's avatar Maxime Chazalviel

Rank for filter and seed can not be hide by removing isolated nodes

parent cc3f1666
......@@ -3236,7 +3236,11 @@ metExploreD3.GraphNetwork = {
// Get visible nodes
var visibleNodes = networkData.getNodes()
.filter(function (node) {
return !node.isHidden();
var isSeed=false;
if(node.getMappingDatas().map(m=>m.getMappingName()).includes("seed")){
isSeed=true;
}
return !node.isHidden() && !isSeed;
});
//get isolated nodes from visible ones
......@@ -3258,6 +3262,7 @@ metExploreD3.GraphNetwork = {
//hide isolated nodes
isolatedNodes.forEach(function(node) {
if(node.getDbIdentifier())
node.hide();
});
......
......@@ -1971,7 +1971,7 @@ metExploreD3.GraphNode = {
d3.select(this).selectAll("rect").style("stroke", 'red')
.style("stroke-width", "3");
}
} else if(n.getMappingDataByNameAndCond("score.txt(json)", "MROut").getMapValue() >0.05){
} else if(n.getMappingDataByNameAndCond("rank.txt(json)", "outrank").getMapValue() <25){
d3.select(this).selectAll("rect").style("stroke", 'blue')
.style("stroke-width", "3");
} else if(n.getMappingDataByNameAndCond("score.txt(json)", "MROut").getMapValue() == 0 && n.getMappingDataByNameAndCond("score.txt(json)", "MRIn").getMapValue() == 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