getAlphabet.ToleranceSubstitution: Get the Alphabet object aggregated by a ToleranceSubstitution...

Description Usage Arguments Value Author(s) See Also Examples

Description

Get 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.

Usage

1
2
## S3 method for class 'ToleranceSubstitution'
getAlphabet(this, ...)

Arguments

this

A ToleranceSubstitution object.

...

Not used.

Value

An Alphabet object.

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see ToleranceSubstitution.

Examples

 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
 

phylosim documentation built on Nov. 22, 2019, 1:07 a.m.