Uses of Interface
pal.tree.Tree
-
Packages that use Tree Package Description pal.coalescent Classes to model population genetic processes using the coalescent.pal.distance Classes for reading and generating distance matrices, including computation of pairwise distances for sequence data (maximum-likelihood and observed distances).pal.eval Classes for evaluating evolutionary hypothesis (chi-square and likelihood criteria) and estimating model parameters.pal.gui GUI components for some special objects (e.g., trees).pal.mep Classes for the analysis of "measurably evolving populations" (mep).pal.statistics Classes with useful for statistics (normal distribution, Gamma distribution, chi-square distribution, exponential distribution, likelihood-ratio test, chi-square test, descriptive statistics, bootstrap estimators etc.)pal.supgma pal.tree Classes for providing the data structure of trees, for constructing and modifying trees, and for parameterizing trees (e.g., clock constraint).pal.treesearch pal.xml Utility classes for converting PAL objects to and from XML documents. -
-
Uses of Tree in pal.coalescent
Classes in pal.coalescent that implement Tree Modifier and Type Class Description classDemographicClockTreeProvides parameter interface to a clock-like genealogy which is assumed to have some demographic pattern of theta (diversity) as well as branch parameters (the minimal node height differences at each internal node).Methods in pal.coalescent that return Tree Modifier and Type Method Description TreeSerialCoalescentGenerator. generateTree()Tree[]SerialCoalescentGenerator. generateTrees(AlgorithmCallback callback)If callback request stop then returns trees creating thus farTreeSerialCoalescentSimulator. getTree()Tree[]SerialCoalescentGenerator.Results. getTrees()Methods in pal.coalescent with parameters of type Tree Modifier and Type Method Description static CoalescentIntervalsIntervalsExtractor. extractFromClockTree(Tree tree)extracts intervals from clock tree.static CoalescentIntervalsIntervalsExtractor. extractFromClockTree(Tree tree, double minSize)extracts intervals from clock tree.static CoalescentIntervalsIntervalsExtractor. extractFromTree(Tree tree)extracts intervals from serial clock tree.static CoalescentIntervalsIntervalsExtractor. extractFromTree(Tree tree, MutationRateModel muModel)extracts intervals in generation times from serial clock tree (in mutation times) after taking into account mutation rate model.Constructors in pal.coalescent with parameters of type Tree Constructor Description DemographicClockTree(Tree t, DemographicModel model)take any tree and afford it with an interface suitable for a clock-like genealogy, under a certain demographic assumption.Results(Tree[] trees)Results(Tree[] trees, Alignment[] alignments)SkylinePlot(Tree tree, double epsilon)Construct skyline plot from tree -
Uses of Tree in pal.distance
Methods in pal.distance with parameters of type Tree Modifier and Type Method Description static DistanceMatrixGeneratorDistanceMatrixGenerator.Utils. createParametric(Tree baseTree, SubstitutionModel sm, int numberOfSites)Silly idea stuff -
Uses of Tree in pal.eval
Methods in pal.eval that return Tree Modifier and Type Method Description TreeChiSquareValue. getTree()Returns the (parameterized) tree of this likelihood value.TreeLikelihoodValue. getTree()Returns the (potentially parameterized) tree of this likelihood value.TreeSimpleLikelihoodCalculator. getTree()static TreeLikelihoodTool. optimiseClockConstrained(Tree tree, Alignment alignment, SubstitutionModel model, boolean optimiseModel)Optimise the branches of a tree with regard to maximum likelihood, with a molecular clock assumption, that is, constrained such that all tips are contemporaneous, the tree is treated as rooted.static TreeLikelihoodTool. optimiseMRDT(Tree tree, Alignment alignment, SubstitutionModel model, TimeOrderCharacterData tocd, boolean optimiseModel, double[] rateStore)Optimise the branches of a tree with regard to maximum likelihood, with under an assumption of a molecular clock with serially sampled data and multiple mutation rate parameters, mu - one for each sampling interval.static TreeLikelihoodTool. optimiseMRDT(Tree tree, Alignment alignment, SubstitutionModel model, TimeOrderCharacterData tocd, boolean optimiseModel, double[] rateChangeTimes, double[] rateStore)Optimise the branches of a tree with regard to maximum likelihood, with under an assumption of a molecular clock with serially sampled data and multiple mutation rate parameters, mu, over general time intervals.static TreeLikelihoodTool. optimiseSRDT(Tree tree, Alignment alignment, SubstitutionModel model, TimeOrderCharacterData tocd, boolean optimiseModel, double[] rateStore)Optimise the branches of a tree with regard to maximum likelihood, with under an assumption of a molecular clock with serially sampled data and a single mutation rate parameter.static TreeLikelihoodTool. optimiseUnrooted(Tree tree, Alignment alignment, SubstitutionModel model, boolean optimiseModel)Optimise the branches of a tree with regard to maximum likelihood, with no constraints on the branchlengths (as for an unrooted tree).Methods in pal.eval with parameters of type Tree Modifier and Type Method Description static doubleLikelihoodTool. calculateLogLikelihood(Tree tree, Alignment alignment, SubstitutionModel model)Calculate the log likelihood of a particular set of phylogenetic datastatic TreeLikelihoodTool. optimiseClockConstrained(Tree tree, Alignment alignment, SubstitutionModel model, boolean optimiseModel)Optimise the branches of a tree with regard to maximum likelihood, with a molecular clock assumption, that is, constrained such that all tips are contemporaneous, the tree is treated as rooted.static doubleLikelihoodOptimiser. optimiseModel(Tree tree, Alignment alignment, SubstitutionModel model, MultivariateMinimum minimiser, int fxFracDigits, int xFracDigits, MinimiserMonitor monitor)Optimise model parameters only to acheive maximum likelihood using a combined stategy.static TreeLikelihoodTool. optimiseMRDT(Tree tree, Alignment alignment, SubstitutionModel model, TimeOrderCharacterData tocd, boolean optimiseModel, double[] rateStore)Optimise the branches of a tree with regard to maximum likelihood, with under an assumption of a molecular clock with serially sampled data and multiple mutation rate parameters, mu - one for each sampling interval.static TreeLikelihoodTool. optimiseMRDT(Tree tree, Alignment alignment, SubstitutionModel model, TimeOrderCharacterData tocd, boolean optimiseModel, double[] rateChangeTimes, double[] rateStore)Optimise the branches of a tree with regard to maximum likelihood, with under an assumption of a molecular clock with serially sampled data and multiple mutation rate parameters, mu, over general time intervals.static TreeLikelihoodTool. optimiseSRDT(Tree tree, Alignment alignment, SubstitutionModel model, TimeOrderCharacterData tocd, boolean optimiseModel, double[] rateStore)Optimise the branches of a tree with regard to maximum likelihood, with under an assumption of a molecular clock with serially sampled data and a single mutation rate parameter.static TreeLikelihoodTool. optimiseUnrooted(Tree tree, Alignment alignment, SubstitutionModel model, boolean optimiseModel)Optimise the branches of a tree with regard to maximum likelihood, with no constraints on the branchlengths (as for an unrooted tree).voidChiSquareValue. setTree(Tree t)define (parameterized) treevoidFastLikelihoodCalculator. setTree(Tree t)voidLikelihoodValue. setTree(Tree t)define (parameterized) tree ,(must only be called only after a site pattern has been defined).voidSimpleLikelihoodCalculator. setTree(Tree t)define tree ,(must only be called only after a site pattern has been defined).voidGeneralLikelihoodCalculator. setup(Tree t, SubstitutionModel model)Constructors in pal.eval with parameters of type Tree Constructor Description FastLikelihoodCalculator(SitePattern pattern, Tree tree, RateMatrix model)Constructor taking site pattern, tree and model.GeneralLikelihoodCalculator(Alignment baseAlignment, Tree tree, RateMatrix model)Constructor taking site pattern, tree and a rate matrix.GeneralLikelihoodCalculator(Alignment baseAlignment, Tree tree, RateMatrix model, RateDistribution distribution)Constructor taking site pattern, tree rate matrix, and a rate distributionGeneralLikelihoodCalculator(Alignment baseAlignment, Tree tree, SubstitutionModel model)Constructor taking site pattern, tree and a general substitution model.LikelihoodOptimiser(Tree tree, Alignment alignment, SubstitutionModel model)SimpleLikelihoodCalculator(SitePattern pattern, Tree tree, RateMatrix model) -
Uses of Tree in pal.gui
Methods in pal.gui that return Tree Modifier and Type Method Description protected TreeTreePainter. getTree()Methods in pal.gui with parameters of type Tree Modifier and Type Method Description voidTreeComponent. setTree(Tree tree)voidTreePainter. setTree(Tree tree)voidTreePainter. setTreeImpl(Tree tree)may be implemented by sub classesvoidTreePainterCircular. setTreeImpl(Tree t)Constructors in pal.gui with parameters of type Tree Constructor Description TreeComponent(Tree tree)TreeComponent(Tree tree, boolean usingSymbols)TreeComponent(Tree tree, java.lang.String title)TreeComponent(Tree tree, java.lang.String title, boolean showTitle)TreeComponent(Tree tree, TimeOrderCharacterData tocd, boolean usingSymbols)TreePainter(Tree toDisplay, java.lang.String title, boolean showTitle)TreePainterCircular(Tree toDisplay, java.lang.String title, boolean showTitle)TreePainterNormal(Tree toDisplay, java.lang.String title, boolean showTitle) -
Uses of Tree in pal.mep
Methods in pal.mep that return Tree Modifier and Type Method Description TreeDeltaModel.Instance. generateAlternativeRepresentation(Tree expectedSubstitutionsTree)Methods in pal.mep with parameters of type Tree Modifier and Type Method Description TreeDeltaModel.Instance. generateAlternativeRepresentation(Tree expectedSubstitutionsTree) -
Uses of Tree in pal.statistics
Methods in pal.statistics that return Tree Modifier and Type Method Description TreeLikelihoodEvaluator.MLResult. getOptimisedTree()TreeLikelihoodEvaluator.SimpleMLResult. getOptimisedTree()Tree[]GeneralTopologyPool. getOriginalOptimisedTrees()Methods in pal.statistics with parameters of type Tree Modifier and Type Method Description doubleLikelihoodEvaluator. calculateLikelihood(Tree tree, Alignment alignment)LikelihoodEvaluator.MLResultLikelihoodEvaluator. getMLOptimised(Tree tree, Alignment alignment, AlgorithmCallback callback)doubleReplicateLikelihoodEvaluator. getReplicateLogLikelihood(Tree tree, Alignment alignment)Constructors in pal.statistics with parameters of type Tree Constructor Description GeneralTopologyPool(Tree[] topologies, LikelihoodEvaluator baseCalculator, ReplicateLikelihoodEvaluator replicateCalculator, Alignment baseAlignment, AlignmentGenerator replicateGenerator)SimpleMLResult(double logLikelihood, Tree optimisedTree) -
Uses of Tree in pal.supgma
Classes in pal.supgma that implement Tree Modifier and Type Class Description classSUPGMATreeconstructs an SUPGMA tree from pairwise distances.Methods in pal.supgma that return Tree Modifier and Type Method Description TreeSUPGMABase. generateAlignmentBootstrappedSUPGMATree(AlgorithmCallback callback, ClusterTree.ClusteringMethod cm, SUPGMABase.PopulationParameters pp, int numberOfReplicates, LMSSolver solver)TreeSUPGMABase.PopulationParameters. generateSUPGMATree(ClusterTree.ClusteringMethod cm)TreeSUPGMABase.PopulationParameters. generateSUPGMATree(AlgorithmCallback callback, ClusterTree.ClusteringMethod cm, DistanceMatrixGenerator replicateSource, int numberOfAlignmentBootstrapReplicates, LMSSolver solver)TreeSUPGMABase.PopulationParameters. simulateTree()Tree[]SUPGMABase.PopulationParameters. simulateTrees(int numberOfTreesToSimulate, AlgorithmCallback callback, LMSSolver solver)TreeSUPGMABase. solve(AlgorithmCallback callback, ClusterTree.ClusteringMethod cm, LMSSolver solver) -
Uses of Tree in pal.tree
Subinterfaces of Tree in pal.tree Modifier and Type Interface Description interfaceParameterizedTreeabstract base class for a tree with an Parameterized interfaceClasses in pal.tree that implement Tree Modifier and Type Class Description classClockTreeprovides parameter interface to a clock tree (parameters are the minimal node height differences at each internal node)classClusterTreeclassLogParameterizedTreeThis class logarithmically transforms tree parameters.classMutationRateModelTreeProvides parameter interface to any clock-like tree with serially sampled tips (parameters are the minimal node height differences at each internal node).classNeighborJoiningTreeconstructs a neighbor-joining tree from pairwise distances
Saitou, N., and Nei, M., (1987) The neighbor-joining method: A new method for reconstructing phylogenetic trees.static classParameterizedTree.ParameterizedTreeBaseFor parameterisations that work by adjusting a base tree (that is, they aren't really tree's themselves...)classReadTreeconstructs a tree reading in a New Hampshire treefile, taking care for internal labels and branch lengths and binary/nonbinary and rooted/unrooted treesclassSimpleTreedata structure for a binary/non-binary rooted/unrooted treesstatic classTree.TreeBaseclassUnconstrainedTreeprovides parameter interface to an unconstrained tree (parameters are all available branch lengths)classUPGMATreeDeprecated.Use ClusterTreeMethods in pal.tree that return Tree Modifier and Type Method Description static TreeTreeTool. createNeighbourJoiningTree(double[][] dm, java.lang.String[] otuNames)Neighbour-joining tree construction based on a distance matrixstatic TreeTreeTool. createNeighbourJoiningTree(DistanceMatrix dm)Neighbour-joining tree construction based on a distance matrixstatic TreeTreeTool. createUPGMA(DistanceMatrix dm)UPGMA tree construction based on a distance matrixstatic TreeTreeTool. createUPGMATree(double[][] dm, java.lang.String[] otuNames)UPGMA tree construction based on a distance matrixTreeTreeRestricter. generateTree()static TreeTreeUtils. generationsToMutations(Tree generationTree, MutationRateModel muModel)Takes a tree (in generation units) and returns a scaled version of it (in mutation units).static TreeTreeUtils. generationsToMutations(Tree generationTree, MutationRateModel muModel, double generationTime)Takes a tree (in generation units) and returns a scaled version of it (in mutation units).static Tree[]TreeManipulator. getAllRootingsBy(Tree base, java.lang.String[] outgroupNames)Roots a tree by an outgroupTree[]TreeManipulator. getAllTreesRootedBy(java.lang.String[] outgroupNames)TreeTreeManipulator. getAsInputRootingTree()A method for recovering the input (construction) tree (with the EXPANSION/MIMIC/REDUCED differences)protected TreeParameterizedTree.ParameterizedTreeBase. getBaseTree()static TreeTreeUtils. getBootstrapSupportByCladeTree(java.lang.String attributeName, Tree baseTree, Tree[] alternativeTrees)Deprecated.Use getReplicateCladeSupport insteadTreeClockTree. getCopy()TreeMutationRateModelTree. getCopy()TreeParameterizedTree.ParameterizedTreeBase. getCopy()The cheapy copy that just creates a SimpleTreeTreeSimpleTree. getCopy()TreeTree. getCopy()TreeUnconstrainedTree. getCopy()TreeTreeManipulator. getDefaultRootTree()Tree[]TreeManipulator. getEveryRoot()static Tree[]TreeManipulator. getEveryRoot(Tree base)Obtains every rooting of a base treestatic TreeTreeManipulator. getMidpointRooted(Tree base)Returns the mid point rooting of a tree.static TreeTreeTool. getMidPointRooted(Tree t)Root a tree around it's midpoint.TreeTreeManipulator. getMidPointRootedTree()TreeTreeGenerator. getNextTree(AlgorithmCallback callback)static TreeTreeUtils. getNumberRelabelledTree(Tree baseTree, IdGroup ids)Create a new tree such that the labels are redifined from a base tree in such a manner: For each leaf label If the base label is not a number the new label is just the original label If the base label is a number the new label appropriately index label from a set identifiersstatic TreeTreeUtils. getReplicateCladeSupport(java.lang.String attributeName, Tree baseTree, TreeGenerator treeGenerator, int numberOfReplicates, AlgorithmCallback callback)Generates a tree which is identical to baseTree but has attributes (defined by attributeName) at all internal nodes excluding the root node signifying (as a value between 0 and 100) the replicate support by clade (that is the proportion of replicates that produce the sub clade under that node)static TreeTreeTool. getRooted(Tree t, java.lang.String[] outgroupMembers)Root a tree by an outgroup.static TreeTreeManipulator. getRootedBy(Tree base, java.lang.String[] outgroupNames)Roots a tree by an outgroupstatic TreeTreeManipulator. getRootedBy(Tree base, java.lang.String[] outgroupNames, double ingroupBranchLength)Roots a tree by an outgroupstatic TreeTreeUtils. getScaled(Tree oldTree, double rate)Takes a tree and returns a scaled version of it.static TreeTreeUtils. getScaled(Tree oldTree, double rate, int newUnits)Takes a tree and returns a scaled version of it.static TreeTreeUtils. getScaled(Tree mutationRateTree, MutationRateModel muModel)Takes a tree and returns a scaled version of it.static TreeTreeUtils. getScaled(Tree mutationRateTree, MutationRateModel muModel, int newUnits)Takes a tree and returns a scaled version of it.TreeTreeManipulator. getTreeRootedAbove(Node n)TreeTreeManipulator. getTreeRootedBy(java.lang.String[] outgroupNames)TreeTreeManipulator. getTreeRootedBy(java.lang.String[] outgroupNames, double ingroupBranchLength)static TreeTreeManipulator. getUnrooted(Tree base)Unroots a treestatic TreeTreeTool. getUnrooted(Tree t)Unroot a tree (makes the base of the tree a trification).TreeTreeManipulator. getUnrootedTree()return unrooted nodestatic TreeLocal. local(Tree tree)static TreeLocal. local(Tree tree, double scaleFactor)This method does a local interchange on the given tree: Note the original tree is modified.static TreeTreeUtils. mutationsToGenerations(Tree mutationTree, MutationRateModel muModel)Takes a tree (in mutation units) and returns a scaled version of it (in generation units).TreeTreeOperation. operateOn(Tree tree)Operates on input tree.static TreeTreeTool. readTree(java.io.Reader r)Read a tree from an input source.static TreeTreeUtils. scale(Tree oldTree, double rate, int newUnits)Deprecated.use getScaled()static TreeTreeUtils. scale(Tree mutationRateTree, MutationRateModel muModel)Deprecated.use getScaled()static TreeTreeUtils. scale(Tree mutationRateTree, MutationRateModel muModel, int newUnits)Deprecated.use getScaled()static TreeLocal. stochasticNNI(Tree tree)Methods in pal.tree with parameters of type Tree Modifier and Type Method Description static voidCladeSystem. calculateCladeProbabilities(Tree tree, CladeSystem[] cladeSystems)static voidRootedTreeUtils. collectProportions(Tree tree, java.util.Vector trees)static voidTreeUtils. computeAllDistances(Tree tree, int a, double[] dist, double[] idist, boolean countEdges, double epsilon)static doubleTreeUtils. computeDistance(Tree tree, int a, int b)compute distance between two external nodesstatic AlignmentTreeUtils. extractAlignment(Tree tree)Extracts an alignment from a tree.static AlignmentTreeUtils. extractAlignment(Tree tree, boolean leaveSeqsInTree)Extracts an alignment from a tree.static TimeOrderCharacterDataTreeUtils. extractTimeOrderCharacterData(Tree tree, int units)Extracts a time order character data from a tree.SimulatedAlignmentSimulatedAlignment.Factory. generateAlignment(Tree tree)Generate a simulated alignment based on input treeSimulatedAlignment[]SimulatedAlignment.Factory. generateAlignments(Tree[] trees, AlgorithmCallback callback)Generate an array of simulated alignments based on an array of input treesParameterizedTreeParameterizedTree.Factory. generateNewTree(Tree base)Generate a new parameterized tree wrapped around basestatic TreeTreeUtils. generationsToMutations(Tree generationTree, MutationRateModel muModel)Takes a tree (in generation units) and returns a scaled version of it (in mutation units).static TreeTreeUtils. generationsToMutations(Tree generationTree, MutationRateModel muModel, double generationTime)Takes a tree (in generation units) and returns a scaled version of it (in mutation units).static Tree[]TreeManipulator. getAllRootingsBy(Tree base, java.lang.String[] outgroupNames)Roots a tree by an outgroupstatic TreeTreeUtils. getBootstrapSupportByCladeTree(java.lang.String attributeName, Tree baseTree, Tree[] alternativeTrees)Deprecated.Use getReplicateCladeSupport insteadstatic CladeSystemCladeSystem. getClades(IdGroup idGroup, Tree tree)creates a clade system from a tree (using a pre-specified order of sequences)static CladeSystemCladeSystem. getClades(Tree tree)creates a clade system from a tree (using tree-induced order of sequences)static CladeSystem[]CladeSystem. getCladeSystems(Tree[] trees)static Tree[]TreeManipulator. getEveryRoot(Tree base)Obtains every rooting of a base treestatic TreeIteratorTreeManipulator. getEveryRootIterator(Tree base)Obtains every rooting of a base treestatic IdGroupTreeUtils. getLeafIdGroup(Tree tree)get list of the identifiers of the external nodesstatic TreeTreeManipulator. getMidpointRooted(Tree base)Returns the mid point rooting of a tree.static TreeTreeTool. getMidPointRooted(Tree t)Root a tree around it's midpoint.static NodeTreeUtils. getNodeByName(Tree tree, java.lang.String name)static TreeTreeUtils. getNumberRelabelledTree(Tree baseTree, IdGroup ids)Create a new tree such that the labels are redifined from a base tree in such a manner: For each leaf label If the base label is not a number the new label is just the original label If the base label is a number the new label appropriately index label from a set identifiersstatic NodeTreeUtils. getRandomNode(Tree tree)Returns a uniformly distributed random node from the tree, including both internal and external nodes.static TreeTreeUtils. getReplicateCladeSupport(java.lang.String attributeName, Tree baseTree, TreeGenerator treeGenerator, int numberOfReplicates, AlgorithmCallback callback)Generates a tree which is identical to baseTree but has attributes (defined by attributeName) at all internal nodes excluding the root node signifying (as a value between 0 and 100) the replicate support by clade (that is the proportion of replicates that produce the sub clade under that node)static doubleTreeUtils. getRobinsonFouldsDistance(SplitSystem s1, Tree t2)computes Robinson-Foulds (1981) distance between two treesstatic doubleTreeUtils. getRobinsonFouldsDistance(Tree t1, Tree t2)computes Robinson-Foulds (1981) distance between two treesstatic doubleTreeUtils. getRobinsonFouldsRescaledDistance(SplitSystem s1, Tree t2)computes Robinson-Foulds (1981) distance between two trees rescaled to a number between 0 and 1static doubleTreeUtils. getRobinsonFouldsRescaledDistance(Tree t1, Tree t2)computes Robinson-Foulds (1981) distance between two trees rescaled to a number between 0 and 1static TreeTreeTool. getRooted(Tree t, java.lang.String[] outgroupMembers)Root a tree by an outgroup.static TreeTreeManipulator. getRootedBy(Tree base, java.lang.String[] outgroupNames)Roots a tree by an outgroupstatic TreeTreeManipulator. getRootedBy(Tree base, java.lang.String[] outgroupNames, double ingroupBranchLength)Roots a tree by an outgroupstatic TreeTreeUtils. getScaled(Tree oldTree, double rate)Takes a tree and returns a scaled version of it.static TreeTreeUtils. getScaled(Tree oldTree, double rate, int newUnits)Takes a tree and returns a scaled version of it.static TreeTreeUtils. getScaled(Tree mutationRateTree, MutationRateModel muModel)Takes a tree and returns a scaled version of it.static TreeTreeUtils. getScaled(Tree mutationRateTree, MutationRateModel muModel, int newUnits)Takes a tree and returns a scaled version of it.static SplitSystemSplitUtils. getSplits(IdGroup idGroup, Tree tree)creates a split system from a tree (using a pre-specified order of sequences)static SplitSystemSplitUtils. getSplits(Tree tree)creates a split system from a tree (using tree-induced order of sequences)static TreeTreeManipulator. getUnrooted(Tree base)Unroots a treestatic TreeTreeTool. getUnrooted(Tree t)Unroot a tree (makes the base of the tree a trification).static voidTreeUtils. labelInternalNodes(Tree tree)Labels the internal nodes of the tree using numbers starting from 0.static TreeLocal. local(Tree tree)static TreeLocal. local(Tree tree, double scaleFactor)This method does a local interchange on the given tree: Note the original tree is modified.static int[]TreeUtils. mapExternalIdentifiers(IdGroup idGroup, Tree tree)map external identifiers in the tree to a set of given identifiers (which can be larger than the set of external identifiers but must contain all of them) NOTE: for efficiency it is assumed that the node lists of the tree are correctly maintained.static TreeTreeUtils. mutationsToGenerations(Tree mutationTree, MutationRateModel muModel)Takes a tree (in mutation units) and returns a scaled version of it (in generation units).TreeTreeOperation. operateOn(Tree tree)Operates on input tree.static voidLocal. print4TaxonTree(Tree tree, java.io.PrintWriter out)static voidTreeUtils. printNH(Tree tree, java.io.PrintWriter out)print a this tree in New Hampshire format (including distances and internal labels)static voidTreeUtils. printNH(Tree tree, java.io.PrintWriter out, boolean printLengths, boolean printInternalLabels)print this tree in New Hampshire formatvoidTreeDistanceMatrix. recompute(Tree t)static voidTreeUtils. renameNodes(Tree tree, java.util.Hashtable table)Given a translation table where the keys are the current identifier names and the values are the new identifier names, this method replaces the current identifiers in the tree with new identifiers.static voidTreeUtils. report(Tree tree, java.io.PrintWriter out)static voidTreeUtils. reroot(Tree tree, Node node)static voidTreeUtils. rotateByLeafCount(Tree tree)Rotates branches by leaf count.static TreeTreeUtils. scale(Tree oldTree, double rate, int newUnits)Deprecated.use getScaled()static TreeTreeUtils. scale(Tree mutationRateTree, MutationRateModel muModel)Deprecated.use getScaled()static TreeTreeUtils. scale(Tree mutationRateTree, MutationRateModel muModel, int newUnits)Deprecated.use getScaled()protected voidParameterizedTree.ParameterizedTreeBase. setBaseTree(Tree baseTree)static TreeLocal. stochasticNNI(Tree tree)Constructors in pal.tree with parameters of type Tree Constructor Description ClockTree(Tree t)take any tree and afford it with an interface suitable for a clock-like tree (parameters are the minimal node height differences at each internal node).MutationRateModelTree(Tree t, TimeOrderCharacterData tocd, MutationRateModel model)take any tree and afford it with an interface suitable for a clock-like tree (parameters are the minimal node height differences at each internal node).MutationRateModelTree(Tree t, TimeOrderCharacterData tocd, MutationRateModel model, boolean includeModelParameters)take any tree and afford it with an interface suitable for a clock-like tree (parameters are the minimal node height differences at each internal node).ParameterizedTreeBase(Tree baseTree)SimpleTree(Tree tree)clone constructorSimpleTree(Tree tree, boolean keepIdentifiers)clone constructorSimpleTree(Tree tree, LabelMapping lm)clone constructorSimulatedAlignment(int sites, Tree t, SubstitutionModel m)InititalisationTreeDistanceMatrix(Tree t)compute induced distance matrix using actual branch lengths (using tree-induced order of sequences)TreeDistanceMatrix(Tree t, boolean countEdges, double epsilon)compute induced distance matrix (using tree-induced order of sequences)TreeDistanceMatrix(Tree t, IdGroup idGroup)compute induced distance matrix using actual branch lengthsTreeDistanceMatrix(Tree t, IdGroup idGroup, boolean countEdges, double epsilon)compute induced distance matrixTreeManipulator(Tree base)Construct a TreeManipulator based around a normal treeTreeManipulator(Tree base, int constructionMode)Construct a TreeManipulator based around a normal treeTreeRestricter(Tree t, java.lang.String[] names, boolean inclusion)UnconstrainedTree(Tree t)take any tree and afford it with an interface suitable for an unconstrained tree (parameters are all available branch lengths) -
Uses of Tree in pal.treesearch
Methods in pal.treesearch that return Tree Modifier and Type Method Description TreeTreeSearchTool. basicUnrootedTreeMLSearch(Alignment a, SubstitutionModel sm, boolean optimiseModel)Do a basic tree search using maximum likelihood on an unrooted tree space, without a given starting treeTreeTreeSearchTool. basicUnrootedTreeMLSearch(Alignment a, SubstitutionModel sm, boolean optimiseModel, AlgorithmCallback callback)Do a basic tree search using maximum likelihood on an unrooted tree space, without a given starting treeTreeTreeSearchTool. basicUnrootedTreeMLSearch(Tree baseTree, Alignment a, SubstitutionModel sm, boolean optimiseModel)Do a basic tree search using maximum likelihood on an unrooted tree space, with a given starting treeTreeTreeSearchTool. basicUnrootedTreeMLSearch(Tree baseTree, Alignment a, SubstitutionModel sm, boolean optimiseModel, AlgorithmCallback callback)Do a basic tree search using maximum likelihood on an unrooted tree space, with a given starting treeTreeUnrootedMLSearcher. buildPALTree()TreeGeneralLikelihoodSearcher. buildPALTreeBase()TreeGeneralLikelihoodSearcher. buildPALTreeES()static TreeTreeSearchTool. optimiseClockConstrainedFixed(Tree tree, Alignment alignment, SubstitutionModel model, boolean optimiseModel, AlgorithmCallback callback)Optimise the branches of a tree with regard to maximum likelihood, with the contraints of a global molecular clock - that is, all the tips terminate at the same point.static TreeTreeSearchTool. optimiseUnrootedFixed(Tree tree, Alignment alignment, SubstitutionModel model, boolean optimiseModel)Optimise the branches of a tree with regard to maximum likelihood, with no constraints on the branchlengths (as for an unrooted tree).static TreeTreeSearchTool. optimiseUnrootedFixed(Tree tree, Alignment alignment, SubstitutionModel model, boolean optimiseModel, AlgorithmCallback callback)Optimise the branches of a tree with regard to maximum likelihood, with no constraints on the branchlengths (as for an unrooted tree).Methods in pal.treesearch with parameters of type Tree Modifier and Type Method Description TreeTreeSearchTool. basicUnrootedTreeMLSearch(Tree baseTree, Alignment a, SubstitutionModel sm, boolean optimiseModel)Do a basic tree search using maximum likelihood on an unrooted tree space, with a given starting treeTreeTreeSearchTool. basicUnrootedTreeMLSearch(Tree baseTree, Alignment a, SubstitutionModel sm, boolean optimiseModel, AlgorithmCallback callback)Do a basic tree search using maximum likelihood on an unrooted tree space, with a given starting treestatic doubleTreeSearchTool. calculateLogLikelihood(Tree tree, Alignment alignment, SubstitutionModel model)Calculate the log likelihood of a particular set of phylogenetic datastatic TreeTreeSearchTool. optimiseClockConstrainedFixed(Tree tree, Alignment alignment, SubstitutionModel model, boolean optimiseModel, AlgorithmCallback callback)Optimise the branches of a tree with regard to maximum likelihood, with the contraints of a global molecular clock - that is, all the tips terminate at the same point.static TreeTreeSearchTool. optimiseUnrootedFixed(Tree tree, Alignment alignment, SubstitutionModel model, boolean optimiseModel)Optimise the branches of a tree with regard to maximum likelihood, with no constraints on the branchlengths (as for an unrooted tree).static TreeTreeSearchTool. optimiseUnrootedFixed(Tree tree, Alignment alignment, SubstitutionModel model, boolean optimiseModel, AlgorithmCallback callback)Optimise the branches of a tree with regard to maximum likelihood, with no constraints on the branchlengths (as for an unrooted tree).Constructors in pal.treesearch with parameters of type Tree Constructor Description UnrootedMLSearcher(Tree t, Alignment alignment, SubstitutionModel model) -
Uses of Tree in pal.xml
Methods in pal.xml that return Tree Modifier and Type Method Description static TreeElementParser. parseTreeElement(org.w3c.dom.Element e)Methods in pal.xml with parameters of type Tree Modifier and Type Method Description static org.w3c.dom.ElementElementFactory. createTreeElement(Tree tree, org.w3c.dom.Document document, boolean includeEdges)
-