Description Usage Arguments Value Author(s) See Also Examples
Get the scaled rate of an event from a GeneralSubstitution object.
This method return the element from the scaled rate matrix stored in the associated QMatrix object corresponding to a given event. The event can be specified by the inital and target states ("from" and "to" arguments), or by the event name ("from->to"). The event name takes precedence over the "from" and "to" arguments.
This method doesn't take into account the site specific rate multipliers in any way.
1 2 |
this |
A GeneralSubstitution object. |
name |
The name of the event. |
from |
The initial state. |
to |
Target state. |
... |
Not used. |
A Numeric vector of length one.
Botond Sipos, Gregory Jordan
For more information see GeneralSubstitution
.
1 2 3 4 5 6 7 8 | # create a GeneralSubstitution object
# provide an Alphabet object and the rates
p<-GeneralSubstitution(alphabet=BinaryAlphabet(), rate.list=list("1->0"=1,"0->1"=1))
# get the scaled rate of "0->1" by name
getEventRate(p,"0->1")
# get the scaled rate of "0->1" by states
getEventRate(p,from="0",to="1")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.