Commit 8e0d1930 authored by Clement Frainay's avatar Clement Frainay

change mapping to score instead of rank

parent 475d281a
......@@ -1794,6 +1794,7 @@ metExploreD3.GraphNode = {
metExploreD3.GraphNode.colorStoreByCompartment(metExploreD3.GraphNode.node);
//----------------------------------------------------------------------------------------------------------------------------------------------------<TEST----------------------------------------------
var sideNodes = [];
d3.selectAll("g.node").filter(m=>m.getBiologicalType()==="metabolite").each(function(n){
if(n.getMappingDatas().map(m=>m.getMappingName()).includes("rank.txt(json)")){
......@@ -1805,10 +1806,15 @@ metExploreD3.GraphNode = {
d3.select(this).selectAll("rect").style("stroke", 'red')
.style("stroke-width", "3");
}
} else if(n.getMappingDataByNameAndCond("rank.txt(json)", "outrank").getMapValue() <25){
} else if(n.getMappingDataByNameAndCond("score.txt(json)", "MROut").getMapValue() >0.05){
d3.select(this).selectAll("rect").style("stroke", 'blue')
.style("stroke-width", "3");
} else{
} else if(n.getMappingDataByNameAndCond("score.txt(json)", "MROut").getMapValue() == 0 && n.getMappingDataByNameAndCond("score.txt(json)", "MRIn").getMapValue() == 0){
console.log(n.getName);
d3.select(this).selectAll("rect").style("stroke", 'black').style("stroke-opacity","0.25");
d3.select(this).selectAll("text").style("opacity","0.50");
sideNodes.push(n.getDbIdentifier());
} else {
d3.select(this).selectAll("rect").style("stroke", 'black');
}
......
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