GraphNode
metExploreViz.GraphNode provides some features to manage nodes object into your network.
Find nodes
Some functions are dedicated to find and select nodes
#metExploreViz.GraphNode.highlightANode(nodeID)
This function allows you to select, fix and grow up a node.
metExploreViz.GraphNode.highlightANode("M199208");
#metExploreViz.GraphNode.searchNode(String)
This functions allows you to find and select one or several nodes with a fuzzy search.
metExploreViz.GraphNode.searchNode("acetyl");
#metExploreViz.GraphNode.selectNodesOfPathway(pathwayName, vizPanel)
This functions allows you to find and select all the nodes from a specific pathway.
metExploreViz.GraphNode.selectNodesOfPathway("formylTHF biosynthesis I", "viz");
Side compounds
Some functions are dedicated to load and set nodes as side compounds.
#metExploreViz.GraphNode.loadSideCompounds(arrayNode)
This function allows you to load a list of metabolites and set this metabolites as side compounds.
var nodeArray = ["H2O", "ATP", "ADP"];
metExploreViz.GraphNode.loadSideCompounds(nodeArray);
#metExploreViz.GraphNode.setIsSideCompoundById(idMetabolite, bool)
This function allows you to change side compound status for a specific node.
metExploreViz.GraphNode.setIsSideCompoundById("M199208", true);
metExploreViz.GraphNode.setIsSideCompoundById("M199208", false);
Refresh node visualisation
Some nodes properties change need a refresh to be applied on your network.
#metExploreViz.GraphNode.refreshNode(vizPanel)
This function allows you to refresh and update nodes properties change.
metExploreViz.GraphNode.refreshNode("viz");