public Phylogeny buildAptxTree()
{
- // NeighborJoiningF foresterClustering = NeighborJoiningF
- // .createInstance();
- // aptxTree = foresterClustering.execute(distances);
+ // test loop
+ for (SequenceI sequence : sequences)
+ {
+ PhylogenyNode sequenceNode = new PhylogenyNode(sequence.getName());
+ rootNode.addAsChild(sequenceNode);
+ }
+ aptxTree.setRoot(rootNode);
treeTitle = generateTreeName();
this.treeType = treeType;
this.substitutionMatrix = substitutionMatrix;
this.tree = tree;
- initNewTreePanel(ap, tree);
+ initTreePanel(ap, tree);
// We know this tree has distances. JBPNote TODO: prolly should add this as
// a userdefined default
{
super();
this.treeTitle = theTitle;
- initLoadedTreePanel(alignPanel, newtree, inputData);
+ initTreePanel(alignPanel, newtree, inputData);
}
public AlignmentI getAlignment()
return treeCanvas.av;
}
- void initNewTreePanel(AlignmentPanel ap, TreeModel tree)
+ void initTreePanel(AlignmentPanel ap, TreeModel tree)
{
buildTreeCanvas(ap);
tl.start();
}
- void initLoadedTreePanel(AlignmentPanel ap,
+ void initTreePanel(AlignmentPanel ap,
NewickFile newTree, AlignmentView inputData)
{
buildTreeCanvas(ap);