BioAlphabet-class {Biostrings} | R Documentation |
Each object of class "BioAlphabet" represents a particular alphabet used to represent some biological sequence.
A virtual Class: No objects may be created from it.
letters
:"character"
representing the letters of the alphabet. Usually roman
upper case letters are used. The one exception is the gap
character which is always ‘-’mapping
:"integer"
representing
the encoding used to represent these objects internally. gap
:"character"
, the gap
character in the alphabet. mapping
slot. x
of class "BioPatternAlphabet" to value
which must
be a single letter not in the base alphabet of x
.Saikat DebRoy
NucleotideAlphabet-class
and
AminoAcidAlphabet-class
, for two subclasses of the
"BioAlphabet"
class.
new("NucleotideAlphabet", letters=c('A', 'G', 'C', 'T')) new("NucleotideAlphabet", letters=c('-', 'A', 'G', 'C', 'T'))