getUniqueAlphabets.Sequence: Get the list of unique Alphabet objects associated to Site...

Description Usage Arguments Value Author(s) See Also Examples

Description

Get the list of unique Alphabet objects associated to Site objects aggaregated by a Sequence object. The returned list contains unique instances of the Alphabet class. The symbol sets are not compared, so two instances of the same class are considered to be different.

Usage

1
2
## S3 method for class 'Sequence'
getUniqueAlphabets(this, ...)

Arguments

this

A Sequence object.

...

Not used.

Value

A list of Alphabet objects.

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see Sequence.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
	# create a Sequence object with some Alphabet objects attached
	s<-Sequence(
               alphabets=list(NucleotideAlphabet(),
               BinaryAlphabet(),
               NucleotideAlphabet()),
               length=10
               )
	# get the list of attached alphabets
	s$alphabets
	# get the unique list of attahced Alphabet objects
	getUniqueAlphabets(s)
 

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