Search in sources :

Example 1 with TreeSelectionI

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();
    }
}
Also used : TreeDrawerNode(edu.ucsf.rbvi.clusterMaker2.internal.treeview.TreeDrawerNode) TreeSelectionI(edu.ucsf.rbvi.clusterMaker2.internal.treeview.TreeSelectionI)

Aggregations

TreeDrawerNode (edu.ucsf.rbvi.clusterMaker2.internal.treeview.TreeDrawerNode)1 TreeSelectionI (edu.ucsf.rbvi.clusterMaker2.internal.treeview.TreeSelectionI)1