Learn R Programming

⚠️There's a newer version (1.5.1) of this package.Take me there.

TreeSearch (version 0.3.2)

Phylogenetic Tree Search Using Custom Optimality Criteria

Description

Searches for phylogenetic trees that are optimal using a user-defined criterion. Implements Profile Parsimony (Faith and Trueman, 2001) , and Successive Approximations (Farris, 1969) . Handles inapplicable data using the algorithm of Brazeau, Guillerme and Smith (2019) .

Copy Link

Version

Install

install.packages('TreeSearch')

Monthly Downloads

702

Version

0.3.2

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Martin R. Smith

Last Published

June 3rd, 2019

Functions in TreeSearch (0.3.2)

AncestorEdge

Ancestral edge
EnforceOutgroup

Force taxa to form an outgroup
DropSingleSplits

Drop Single Splits
AsBinary

Convert a number to binary
C_node_depth

Node depth Wrapper for the ape function
EdgeAncestry

EdgeAncestry
Entropy

Entropy in bits
ICS

Information content per step
FitchSteps

Fitch score
Lobo.data

Raw data from Zhang et al. 2016
NRooted

Number of rooted/unrooted trees These functions return the number of rooted or unrooted trees consistent with a given pattern of splits.
Lobo.phy

Data from Zhang et al. 2016 in phyDat format
Fitch

Calculate parsimony score with inapplicable data
OrderEdgesNumberNodes

Order edges and number nodes Wrapper for the C function
NewickTree

Newick Tree
PhyDat2Morphy

Initialize a Morphy Object from a phyDat object
RootTree

Root Tree on specified tips
IWScore

Implied weights parsimony Score
ApeTime

Ape Time
DoubleFactorial

Double Factorial
InfoAmounts

Amount of information in each character
DoubleNNI

Double NNI
SPR

Subtree Pruning and Rearrangement (SPR)
SplitMutualInformation

Mutual information of two splits
SplitMatchProbability

Probability of matching this well
ICSteps

Information Content Steps
MatrixToList

Edge matrix to edge list
MatrixToPhyDat

Matrix to phydat
MorphyErrorCheck

Check for error whilst modifying Morphy object
MorphyTreeLength

Calculate parsimony score with inapplicable data
MorphyWeights

Report the character weightings associated with a Morphy object
MutualArborealInfo

Information-based generalized Robinson-Foulds distance between two trees
IWScoreMorphy

Profile Parsimony Score
SupportColour

Support colour
TBR

Tree bisection and reconnection (TBR)
SortTree

Sort tree
RenumberTips

Reorder tips
RandomMorphyTree

Random postorder tree
Renumber

Renumber a tree's nodes and tips
NonDuplicateRoot

Non-duplicate root
NeworderPhylo

neworder_phylo Wrapper for the ape function
NyeTreeSimilarity

Nye et al. (2006) tree comparison
NeworderPruningwise

neworder_pruningwise Wrapper for the ape function
Jackknife

Parsimony Ratchet
IWTreeSearch

Search for most parsimonious trees
Tree2Splits

Tree2Splits
SplitFrequency

Frequency of splits
SplitInformation

Information content of a split
SplitsRepeated

Are Splits Repeated?
SplitsCompatible

Are splits compatible?
ReadCharacters

Read characters from Nexus file
SplitEntropy

Entropy of two splits
SuccessiveApproximations

Tree Search using Successive Approximations
CalculateTreeDistance

Wrapper for tree distance calculations
CollapseNode

Collapse nodes on a phylogenetic tree
ExtractTaxa

Extract taxa from a matrix block
Evaluate

Evaluate tree
Cladewise

Reorder tree Cladewise
CladeSizes

Clade sizes
SuccessiveWeights

Successive Weights
logDoubleFactorials

Natural logarithms of double factorials
SPRWarning

TBR Warning Print a warning and return given tree
TreesMatchingSplit

Number of trees matching a bipartition split
UniqueExceptHits

Unique trees (ignoring 'hits' attribute)
mpl_get_numtaxa

Retrieve the number of taxa (rows) in the dataset.
inapplicable.datasets

Thirty Datasets with Inapplicable data
inapplicable.phyData

Thirty Datasets with Inapplicable data
mpl_get_num_internal_nodes

Gets the number of internal nodal reconstruction sets being used by MorphyLib.
AllSPR

All SPR trees
mpl_apply_tipdata

Commits parameters prior to nodal set calculations.
TipsAreNames

Extract character data from dataset
AllSplitPairings

All split pairings
MinimumSteps

Minimum steps
mpl_init_Morphy

Sets up the dimensions of the dataset.
mpl_get_symbols

Retrieves the current list of symbols.
mpl_attach_symbols

Attach a caller-specified list of symbols.
JointInformation

Joint Information of two splits
mpl_attach_rawdata

Attach raw character state data (i.e. tip data).
ListToMatrix

Edge list to edge matrix
LogisticPoints

Logistic Points Extract points from a fitted model
ConsensusWithout

Consensus without taxa
DescendantEdges

Descendant Edges
mpl_set_num_internal_nodes

Sets the number of internal nodes in the dataset
MorphyBootstrap

Ratchet bootstrapper
RandomTree

Generate random tree topology from dataset
NJTree

Neighbour Joining Tree
N1Spr

Number of trees one SPR step away Formula given by Allen and Steel (2001).
RandomTreeScore

Parsimony score of random postorder tree
SingleCharMorphy

Morphy object from single character
SingleTaxonTree

SingleTaxonTree
RearrangeEdges

Rearrange edges of a phylogenetic tree
ReadTntTree

Parse TNT Tree
mpl_set_parsim_t

Sets a character's parsimony function type
summary.morphyPtr

Details the attributes of a morphy object
MatchingSplitDistance

Matching Split Distance
NNI

Nearest Neighbour Interchange (NNI)
StringToPhyDat

String to phyDat
StopUnlessBifurcating

Check that all nodes in a tree are bifurcating.
NPartitionPairs

Distributions of taxa consistent with a partition pair.
mpl_translate_error

Converts a numeric error code to human-readable format
mpl_get_num_charac

Retrieve the number of character (columns) in the dataset.
mpl_get_charac_weight

Retrieve the weight of a character in the dataset
inapplicable.citations

Thirty Datasets with Inapplicable data
doubleFactorials

Double factorials
PhyToString

Extract character data from a phyDat object as a string
UniqueSplits

Unique Splits
mpl_update_lower_root

Updates the nodal sets for a lower ('dummy') root node
UnloadMorphy

Destroy a Morphy Object
mpl_first_down_recon

Reconstructs the first (downpass) nodal reconstructions
WithOneExtraStep

Number of trees with one extra step
VisualizeMatching

Visualise a matching
mpl_second_down_recon

Performs the second nodal reconstructions for characters with inapplicability.
mpl_first_up_recon

Reconstructs the second (uppass) nodal reconstructions.
mpl_new_Morphy

Creates a new instance of a Morphy object
RenumberTree

Renumber a tree Order edges and number nodes Wrapper for the C function RENUMBER_TREE
PrepareDataProfile

Prepare data for Profile Parsimony
SampleOne

Quick sample
RightmostCharacter

Rightmost character of string
SetMorphyWeights

Set the character weightings associated with a Morphy object
UnloadTreeSearch

Unload this library
brewer

Brewer palettes
UnrootedTreesMatchingSplit

Number of trees consistent with split
Subtree

Extract subtree
congreveLamsdellMatrices

100 simulated data matrices
Suboptimality

Tree suboptimality
mpl_delete_Morphy

Destroys an instance of a Morphy object.
mpl_delete_rawdata

Deletes the caller-input data.
mpl_second_up_recon

Finalises the ancestral state reconstructions for characters with inapplicable values.
mpl_set_charac_weight

Set the weight of a character in the dataset
mpl_update_tip

Initial update of tip values following uppass reconstruction.
referenceTree

Tree topology for matrix simulation
AddTip

Add a tip to a phylogenetic tree
AllAncestors

List all ancestral nodes