use of edu.ucsf.rbvi.clusterMaker2.internal.treeview.TreeSelectionI in project clusterMaker2 by RBVI.
the class GraphicsExportPanel method getMinGeneCorr.
/**
* This method returns the minimum correlation for the gene nodes which will be drawn.
*/
protected double getMinGeneCorr() {
if (drawSelected()) {
// if (geneTreeDrawer == null) logger.error("ExportPanel.getMinGeneCorr: geneTreeDrawer null");
TreeSelectionI selection = getGeneSelection();
// if (selection == null) logger.error("ExportPanel.getMinGeneCorr: selection null");
String selectedId = selection.getSelectedNode();
// if (selectedId == null) logger.error("ExportPanel.getMinGeneCorr: selectedId null");
TreeDrawerNode selectedNode = geneTreeDrawer.getNodeById(selectedId);
// if (selectedNode == null) logger.error("ExportPanel.getMinGeneCorr: selectedNode null , id " + selectedId);
return selectedNode.getCorr();
} else {
return geneTreeDrawer.getCorrMin();
}
}
Aggregations