probOfChange: probOfChange

Description Usage Arguments Value References Examples

View source: R/mutProb.R

Description

Calculate the probability of one amino acid mutating into another over a given branch length. Warning: Exponential runtime; test only on very small datasets.

Usage

1
probOfChange(pam, AA1, AA2, d)

Arguments

pam

The PAM matrix given in ./data.

AA1

The origin amino acid

AA2

The target amino acid

d

The branch length between the two sequences.

Value

A scaled probability of mutation.

References

https://cran.r-project.org/web/packages/foreach/index.html

citation("Biostrings")

Examples

1
probOfChange(pam, "L", "K", 3)

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