Description Usage Arguments Value Author(s) See Also Examples
Get the vector of total site rates for a collection of Site objects aggregated by a Sequence object.
1 2 | ## S3 method for class 'Sequence'
getTotalRatesFromRange(this, index, ...)
|
this |
A Sequence object. |
index |
An integer vector specifying a set of positions. It is set to 1:seq$length if omitted. |
... |
Not used. |
A numeric vector.
Botond Sipos, Gregory Jordan
For more information see Sequence
.
1 2 3 4 5 6 7 8 9 10 11 | # create a sequence with some processes attached
s<-Sequence(
string="ATGC",
alphabets=list(NucleotideAlphabet()),
processes=list(list(JC69()),list(JC69(),GTR()))
)
# get total rates for positions 1 and 3
getTotalRatesFromRange(s,c(1,3))
# get all total rates via virtual field
s$totalRates # via the "getTotalRates.Sequence" method
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.