Last chance! 50% off unlimited learning
Sale ends in
prune_specimens_to_species(original_tr, xls, group_name = "default", titletxt = "", areas_abbr = NULL, plot_intermediate = TRUE)
data.frame
)areas_abbr
must have
column headings abbr
and letter
.list
with a pruned
tree and, optionally, a tipranges object.
This function requires a table containing
(1) Column "OTUs": all tipnames in the input tree (often, original specimen/original OTU names) );
(2) Column "species": the corresponding species names;
(3) optionally, the geographic range inhabited by each specimen (column "region"). If an OTU has more than one geographic range in the original table, these should be split by "|".
When the pruning occurs, all tips belonging to the same species are cut, except the first.
NOTE: Tips that should be cut because they are outgroups, or because they are geographically outside of your domain of analysis, should be represented in xls$region by "out_group" or "Out". These will be cut from the final tree/geography table.
drop.tip
,
define_tipranges_object
,
testval=1
tipranges_object = define_tipranges_object()
tipranges_object
areanames = getareas_from_tipranges_object(tipranges_object)
areanames
Run the code above in your browser using DataLab