bvtreeToNewick | R Documentation |
bvtree
to Newick Tree FormatRecursively converts bvtree
to Newick tree format for compatibility with other downstream packages. The output format named leafs with distances that correspond to coalescent times. Additionally, clades have the total tree length explicitly (versus the acceptable Newick shorthand without total length).
bvtreeToNewick(bvtree, tlim = 10)
bvtree |
S3 class; internal class for the |
tlim |
numeric; the maximum number of generations to consider before exiting gracefully if all samples have not coalesced |
Note, the overall time to the most recent common ancestor (TMRCA) is set to the tlim
, which in Newick format looks inappropriately rooted.
Note, the function does not "know" the original tlim
that was specified in the forward-simulation, and thus must be re-stated by the user.
Newick String
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.