View source: R/TreeQuartetDist.R
WQDC | R Documentation |
Compute the Weighted Quartet Distance Consensus \insertCiteYR19MSCquartets estimate of a species tree from gene tree data. This is a consistent estimator of the unrooted species tree topology and all internal branch lengths.
WQDC(
genetreedata,
taxanames = NULL,
method = fastme.bal,
omit = FALSE,
terminal = 1
)
genetreedata |
gene tree data that may be supplied in any of 3 forms:
|
taxanames |
if |
method |
a distance-based tree building function, such as |
omit |
|
terminal |
non-negative branch length to supply for terminal branches
whose length cannot be inferred by |
This function is a wrapper which performs the steps of reading in a collection of gene trees, tallying quartets, estimating quartet internal branch lengths, computing the weighted quartet distance between taxa, building a tree, and adjusting edge lengths, to give a consistent estimate of the metric species tree in coalescent units under the MSC.
If the gene tree data indicates some quartets experienced little to no incomplete lineage
sorting, this algorithm tends to be less topologically accurate than QDC
(which infers no metric information) or WQDCrecursive
(which gives better topologies,
and reasonably accurate lengths for short edges, though long edge lengths may still be unreliable).
an unrooted metric tree of type phylo
YR19MSCquartets
quartetTable
,
quartetTableResolved
,
quartetTableDominant
,
quartetWeightedDist
,
WQDCrecursive
,
WQDS
,
QDC
gtrees=read.tree(file=system.file("extdata","dataGeneTreeSample",package="MSCquartets"))
tnames=taxonNames(gtrees)
stree=WQDC(gtrees,tnames[1:6])
write.tree(stree)
plot(stree)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.