prepare_tree | R Documentation |
Import a phylogenetic tree and then conduct
a series of optional standardisation steps.
Optionally, if output_format
is not NULL
, species names from
both the tree and the species
argument will first be standardised
using map_species.
prepare_tree(
tree_source = "timetree",
species = NULL,
output_format = "scientific_name_formatted",
run_map_species = c(TRUE, TRUE),
method = c("homologene", "gprofiler", "babelgene"),
force_ultrametric = TRUE,
age_max = NULL,
show_plot = TRUE,
save_dir = tools::R_user_dir("orthogene", which = "cache"),
verbose = TRUE,
...
)
tree_source |
Can be one of the following:
|
species |
Species names to subset the tree by
(after |
output_format |
Which column to return. |
run_map_species |
Whether to first standardise species names with map_species. |
method |
R package to use for gene mapping:
|
force_ultrametric |
Whether to force the tree to be ultrametric (i.e. make all tips the same date) using force.ultrametric. |
age_max |
Rescale the edges of the tree into units of
millions of years (MY) instead than evolutionary rates (e.g. dN/dS ratios).
Only used if |
show_plot |
Show a basic plot of the resulting tree. |
save_dir |
Directory to cache full tree in.
Set to |
verbose |
Print messages. |
... |
Additional arguments passed to makeChronosCalib. |
A filtered tree of class "phylo" (with standardised species names).
TimeTree 5: An Expanded Resource for Species Divergence Times
species <- c("human","chimp","mouse")
tr <- orthogene::prepare_tree(species = species)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.