{
jalview.io.NewickFile fout = new jalview.io.NewickFile(getTopNode());
- return fout.print(isHasBootstrap(), isHasDistances(),
- isHasRootDistance()); // output all data available for tree
+ return fout.print(hasBootstrap(), hasDistances(),
+ hasRootDistance()); // output all data available for tree
}
/**
* @param list
* Sequence set to be associated with tree nodes
*/
- public void UpdatePlaceHolders(List<SequenceI> list)
+ public void updatePlaceHolders(List<SequenceI> list)
{
Vector<SequenceNode> leaves = findLeaves(top);
/**
* DOCUMENT ME!
*/
- public void cluster()
+ void cluster()
{
while (noClus > 2)
{
*
* @return DOCUMENT ME!
*/
- public Cluster joinClusters(int i, int j)
+ Cluster joinClusters(int i, int j)
{
double dist = distance.getValue(i, j);
* @param dist
* DOCUMENT ME!
*/
- public void findNewNJDistances(SequenceNode tmpi, SequenceNode tmpj,
+ void findNewNJDistances(SequenceNode tmpi, SequenceNode tmpj,
double dist)
{
* @param dist
* DOCUMENT ME!
*/
- public void findNewDistances(SequenceNode tmpi, SequenceNode tmpj,
+ void findNewDistances(SequenceNode tmpi, SequenceNode tmpj,
double dist)
{
double ih = 0;
* @param j
* DOCUMENT ME!
*/
- public void findClusterDistance(int i, int j)
+ void findClusterDistance(int i, int j)
{
int noi = cluster.elementAt(i).value.length;
int noj = cluster.elementAt(j).value.length;
* @param j
* DOCUMENT ME!
*/
- public void findClusterNJDistance(int i, int j)
+ void findClusterNJDistance(int i, int j)
{
// New distances from cluster to others
*
* @return DOCUMENT ME!
*/
- public double findr(int i, int j)
+ double findr(int i, int j)
{
double tmp = 1;
*
* @return DOCUMENT ME!
*/
- public double findMinNJDistance()
+ double findMinNJDistance()
{
double min = Double.MAX_VALUE;
*
* @return DOCUMENT ME!
*/
- public double findMinDistance()
+ double findMinDistance()
{
double min = Double.MAX_VALUE;
/**
* DOCUMENT ME!
*/
- public void makeLeaves()
+ void makeLeaves()
{
cluster = new Vector<Cluster>();
}
/**
- * Find the leaf node with a particular ycount
- *
- * @param nd
- * initial point on tree to search from
- * @param count
- * value to search for
- *
- * @return null or the node with ycound=count
- */
- public Object findLeaf(SequenceNode nd, int count)
- {
- found = _findLeaf(nd, count);
-
- return found;
- }
-
- /*
- * #see findLeaf(SequenceNode node, count)
- */
- public Object _findLeaf(SequenceNode nd, int count)
- {
- if (nd == null)
- {
- return null;
- }
-
- if (nd.ycount == count)
- {
- found = nd.element();
-
- return found;
- }
- else
- {
- _findLeaf((SequenceNode) nd.left(), count);
- _findLeaf((SequenceNode) nd.right(), count);
- }
-
- return found;
- }
-
- /**
* printNode is mainly for debugging purposes.
*
* @param nd
* SequenceNode
*/
- public void printNode(SequenceNode nd)
+ void printNode(SequenceNode nd)
{
if (nd == null)
{
* @param nd
* DOCUMENT ME!
*/
- public void findMaxDist(SequenceNode nd)
+ void findMaxDist(SequenceNode nd)
{
if (nd == null)
{
*
* @return DOCUMENT ME!
*/
- public SequenceNode reRoot()
+ SequenceNode reRoot()
{
+ // TODO not used - remove?
if (maxdist != null)
{
ycount = 0;
* @param nd
* DOCUMENT ME!
*/
- public void printN(SequenceNode nd)
+ void printN(SequenceNode nd)
{
if (nd == null)
{
* @param nd
* DOCUMENT ME!
*/
- public void _reCount(SequenceNode nd)
+ void _reCount(SequenceNode nd)
{
// if (_lycount<_lylimit)
// {
* @param dir
* DOCUMENT ME!
*/
- public void changeDirection(SequenceNode nd, SequenceNode dir)
+ void changeDirection(SequenceNode nd, SequenceNode dir)
{
if (nd == null)
{
*
* @return true if tree has real distances
*/
- public boolean isHasDistances()
+ public boolean hasDistances()
{
return hasDistances;
}
*
* @return true if tree has real bootstrap values
*/
- public boolean isHasBootstrap()
+ public boolean hasBootstrap()
{
return hasBootstrap;
}
- public boolean isHasRootDistance()
+ public boolean hasRootDistance()
{
return hasRootDistance;
}