Description Usage Arguments Value Author(s) See Also Examples
Set the Alphabet object aggregated by a ToleranceSubstitution object.
This method also sets the alphabet for the associated QMatrix object, which will set all rates to NA. This method will also re-initialize the equlibrium distribution by setting all frequencies to NA.
1 2 | ## S3 method for class 'ToleranceSubstitution'
setAlphabet(this, value, ...)
|
this |
A ToleranceSubstitution object. |
value |
An Alphabet object. |
... |
Not used. |
The Alphabet object.
Botond Sipos, Gregory Jordan
For more information see ToleranceSubstitution
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # create a ToleranceSubstitution object with an attached BinaryAlphabet object
p<-ToleranceSubstitution(alphabet=BinaryAlphabet())
# get object summary
summary(p)
# get alphabet
getAlphabet(p)
# get alphabet via virtual field
p$alphabet
# set a new alphabet
setAlphabet(p,NucleotideAlphabet())
summary(p)
# set alphabet via virtual field
p$alphabet<-BinaryAlphabet()
p$alphabet
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.