Description Usage Arguments Value Examples
View source: R/areCondSatisfied.R
Determine whether conditions are satisfied for two species to be convergently evolved at a given position.
1 2 3 4 5 6 7 8 9 10 |
tree |
A phylogenetic tree |
phydat |
An object of class phydat |
spe1 |
The name of species 1 |
spe2 |
The name of species 2 |
pos |
The position at which to evaluate if conditions are satisfied |
type |
Type of analysis: 'abs' for basic model or 'score' for by convergence score model (AA position with ref to species 1; others are aligned to species 1) |
threshold |
score threshold above which a position is considered convergent |
simMatrix |
similarity matrix to quantify similarity between amino acids (default is BLOSUM62) |
TRUE if conditions are satisfied; FALSE if they are not.
1 2 3 4 5 6 7 | ## Not run:
data(BLOSUM62)
areCondSatisfied(smallTree, primates, "Human", "Chimp", pos=1, type="abs", 1, BLOSUM62)
areCondSatisfied(tree, primates, "Human", "Chimp", pos=2, type="score", threshold=0, BLOSUM62)
areCondSatisfied(tree, primates, "Human", "Chimp", pos=3, type="score", threshold=0, BLOSUM62)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.