* @param treefile
* NewickFile
*/
- public TreeModel(SequenceI[] seqs, AlignmentView odata, NewickFile treefile)
+ public TreeModel(SequenceI[] seqs, AlignmentView odata,
+ NewickFile treefile)
{
- this(seqs, treefile.getTree(), treefile.HasDistances(), treefile
- .HasBootstrap(), treefile.HasRootDistance());
+ this(seqs, treefile.getTree(), treefile.HasDistances(),
+ treefile.HasBootstrap(), treefile.HasRootDistance());
seqData = odata;
associateLeavesToSequences(seqs);
*/
public TreeModel(TreeBuilder tree)
{
- this(tree.getSequences(), tree.getTopNode(), tree.hasDistances(), tree
- .hasBootstrap(), tree.hasRootDistance());
+ this(tree.getSequences(), tree.getTopNode(), tree.hasDistances(),
+ tree.hasBootstrap(), tree.hasRootDistance());
seqData = tree.getOriginalData();
}
{
NewickFile fout = new NewickFile(getTopNode());
- return fout.print(hasBootstrap(), hasDistances(),
- hasRootDistance()); // output all data available for tree
+ return fout.print(hasBootstrap(), hasDistances(), hasRootDistance()); // output
+ // all
+ // data
+ // available
+ // for
+ // tree
}
/**
if (!leaf.isPlaceholder())
{
// Construct a new placeholder sequence object for this leaf
- leaf.setElement(new Sequence(leaf.getName(),
- "THISISAPLACEHLDER"));
+ leaf.setElement(
+ new Sequence(leaf.getName(), "THISISAPLACEHLDER"));
}
leaf.setPlaceholder(true);
System.out.println(" name = " + ((SequenceI) nd.element()).getName());
}
- System.out.println(" dist = " + nd.dist + " " + nd.count + " "
- + nd.height);
+ System.out.println(
+ " dist = " + nd.dist + " " + nd.count + " " + nd.height);
}
/**
{
// if (_lycount<_lylimit)
// {
- // System.err.println("Warning: depth of _recount greater than number of nodes.");
+ // System.err.println("Warning: depth of _recount greater than number of
+ // nodes.");
// }
if (nd == null)
{
public void applyToNodes(NodeTransformI nodeTransformI)
{
for (Enumeration<SequenceNode> nodes = node.elements(); nodes
- .hasMoreElements(); nodeTransformI.transform(nodes
- .nextElement()))
+ .hasMoreElements(); nodeTransformI
+ .transform(nodes.nextElement()))
{
;
}