* SequenceData is a string representation of what the user
* sees. The display may contain hidden columns.
*/
- public AlignmentView seqData;
+ private AlignmentView seqData;
int noseqs;
/**
* Create a new TreeModel object with leaves associated with sequences in
- * seqs, and original alignment data represented by Cigar strings
+ * seqs, and (optionally) original alignment data represented by Cigar strings
*
* @param seqs
* SequenceI[]
*/
public TreeModel(SequenceI[] seqs, AlignmentView odata, NewickFile treefile)
{
- this(seqs, treefile);
- seqData = odata;
- }
-
- /**
- * Creates a new TreeModel object from a tree from an external source
- *
- * @param seqs
- * SequenceI which should be associated with leafs of treefile
- * @param treefile
- * A parsed tree
- */
- public TreeModel(SequenceI[] seqs, NewickFile treefile)
- {
this(seqs, treefile.getTree(), treefile.HasDistances(), treefile
.HasBootstrap(), treefile.HasRootDistance());
+ seqData = odata;
associateLeavesToSequences(seqs);
}
}
/**
- *
- * @return true if original sequence data can be recovered
- */
- public boolean hasOriginalSequenceData()
- {
- return seqData != null;
- }
-
- /**
* Returns original alignment data used for calculation - or null where not
* available.
*
;
}
}
+
+ public AlignmentView getOriginalData()
+ {
+ return seqData;
+ }
}