getConvergent: Find convergent species

Description Usage Arguments Value Examples

View source: R/getResults.R

Description

For a given species, find others in the tree that satisfy the conditions of convergent evolution at a certain position with a less than 0.05 chance of this having occured by chance.

Usage

1
getConvergent(tree, phydat, spe, pos, type = c("abs, score"), t = NA)

Arguments

tree

A phylogenetic tree

phydat

An object of class phydat

spe

The species to compare others in the tree to

pos

The position at which to compare the genes

type

Type of analysis: 'abs' for basic model or 'score' for by convergence score model

t

threshold

Value

A vector of species names which satisfy the conditions listed above.

Examples

1
2
3
4
## Not run: 
getConvergent(tree, primates, "Human", 1, 5)

## End(Not run)

dinaIssakova/rgenesconverged documentation built on Jan. 7, 2020, 4:25 p.m.