surrogateTips: Congeneric Surrogate Species

Description Usage Arguments Details Value Note Author(s) See Also

View source: R/surrogateTips.R

Description

Surrogate species in a phylogenetic tree are replaced by their congeneric study group members.

Usage

1
surrogateTips(phy, species)

Arguments

phy

an object of class phylo.

species

a character vector of species names.

Details

Sometimes not all of the species of interest are available for estimating a phylogenetic tree, either beacuse they have not been sequenced or because their sequences do not pass the sanity checks of megaptera or another pipeline. In this case one can build the phylogeny using other species from the same genus than the missing species and use surrogateTips to replace the actual species names (the ‘surrogate’) with the names of the missing species. This is done in a random way, such that repeated calls with create different phylogenetic trees and can be used to create a sample distribution of the surrogate clades' tree space.

This are the assumptions that warrant the use of surrogateTips:

  1. The deepest split in the phylogeny must be considerably deeper than the diversification of genera.

  2. The species that serve as surrogates must be monophyletic. (This is checked by the function.)

  3. There should be little doubt that surrogate and focal species belong to the same genus.

Value

an object of class phylo.

Note

Beware that the use of surrogateTips entails a rough tree manipulation. If you use this function for research make sure that you understand how it works and its implications on the conclusions that can be drawn out of such analyses.

Author(s)

Christoph Heibl

See Also

addTips


heibl/megaptera documentation built on Jan. 17, 2021, 3:34 a.m.