}
else
{
+ createTree(substitutionMatrix, params);
- String treeAlgo = determineTreeAlgo();
- TreeCalculator treeCalculator = new TreeCalculator(treeAlgo,
- substitutionMatrix, params);
- TreeBuilder calculatedTree = treeCalculator
- .makeTree(af.getViewport());
- ArchaeopteryxInit.createInstance(calculatedTree);
-
- TreeModel tree = new TreeModel(calculatedTree);
- openTreePanel(tree, treeAlgo, substitutionMatrix);
// closeFrame();
}
+ protected void createTree(String substitutionMatrix,
+ SimilarityParamsI params)
+ {
+ String treeAlgo = determineTreeAlgo();
+ TreeCalculator treeCalculator = new TreeCalculator(treeAlgo,
+ substitutionMatrix, params);
+ TreeBuilder calculatedTree = treeCalculator.makeTree(af.getViewport());
+
+ ArchaeopteryxInit.createInstance(calculatedTree);
+ TreeModel tree = new TreeModel(calculatedTree);
+ openTreePanel(tree, treeAlgo, substitutionMatrix);
+ }
protected String determineTreeAlgo() // to be modified & expanded
af.openTreePcaDialog();
CalculationChooser dialog = af.alignPanel.getCalculationDialog();
dialog.openPcaPanel("BLOSUM62", dialog.getSimilarityParameters(true));
- // dialog.openTreePanel("BLOSUM62", dialog.getSimilarityParameters(false));
- // to be adapted
+ dialog.createTree("BLOSUM62",dialog.getSimilarityParameters(false));
/*
* wait until Tree and PCA have been computed