* Cigar[]
* @param treefile
* NewickFile
+ * @param leafAnnotations
+ * Set of annotations that might also be mappable to leaves of the tree
*/
public TreeModel(SequenceI[] seqs, AlignmentView odata,
NewickFile treefile, AlignmentAnnotation[] leafAnnotations)
seqData = odata;
if (leafAnnotations != null)
{
+ // TODO
// leaf names are seuqence ID + annotation for display
// leaf links are annotationId <> annotation object for import from
// project
{
// the following works because all trees are already had node/SequenceI
// associations created.
- TreeModel njt = new TreeModel(al.getSequencesArray(), null, nf);
+ TreeModel njt = new TreeModel(al.getSequencesArray(), null, nf,null);
// this just updates the displayed leaf name on the tree according to
// the SequenceIs.
njt.renameAssociatedNodes();
stage = "Compare original and generated tree" + treename;
Vector<BinaryNode> oseqs, nseqs;
- oseqs = new TreeModel(new SequenceI[0], null, nf)
+ oseqs = new TreeModel(new SequenceI[0], null, nf,null)
.findLeaves(nf.getTree());
AssertJUnit.assertTrue(stage + "No nodes in original tree.",
oseqs.size() > 0);
{
olsqs[i] = (SequenceI) oseqs.get(i).element();
}
- nseqs = new TreeModel(new SequenceI[0], null, nf_regen)
+ nseqs = new TreeModel(new SequenceI[0], null, nf_regen,null)
.findLeaves(nf_regen.getTree());
AssertJUnit.assertTrue(stage + "No nodes in regerated tree.",
nseqs.size() > 0);