jebl.evolution.trees
Class TreeBuilderFactory
java.lang.Object
jebl.evolution.trees.TreeBuilderFactory
public class TreeBuilderFactory
- extends Object
A meeting point for tree building from sequence data. A very initial form which will develope to encompass more
methods and distances. Currently only pairwise distance methods are implemented.
- Author:
- Joseph Heled
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TreeBuilderFactory
public TreeBuilderFactory()
isRootedMethod
public static boolean isRootedMethod(TreeBuilderFactory.Method method)
- Parameters:
method
-
- Returns:
- Wheather method generates a rooted or unrooted tree.
getBuilder
public static ClusteringTreeBuilder getBuilder(TreeBuilderFactory.Method method,
DistanceMatrix distances)
- Parameters:
method
- build method to use.distances
- Pre computed pairwise distances.
- Returns:
- A tree builder using method and distance matrix
buildUnRooted
public static ConsensusTreeBuilder buildUnRooted(Tree[] trees,
Taxon outGroup,
double supportThreshold,
TreeBuilderFactory.ConsensusMethod method)
buildRooted
public static ConsensusTreeBuilder buildRooted(RootedTree[] trees,
double supportThreshold,
TreeBuilderFactory.ConsensusMethod method)
buildRooted
public static ConsensusTreeBuilder buildRooted(Tree[] trees,
double supportThreshold,
TreeBuilderFactory.ConsensusMethod method)
- convenience method. Convert arrays of trees, guaranteed to be rooted to the array of the appropriate
type.
- Parameters:
trees
- trees - all must be rootedsupportThreshold
- minimum required consensus supportmethod
- which consensus method to use
- Returns:
- consensus tree builder