NucleotideAlphabet-class {Biostrings} | R Documentation |
Each object of class "NucleotideAlphabet" represents a nucleotide alphabet. Usually this is the RNA or DNA alphabet and consists of ‘A’, ‘C’, ‘G’, ‘T’ for DNA and ‘A’, ‘C’, ‘G’, ‘U’ for RNA along with ‘-’ which represents a gap in the 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.
Class "BioAlphabet"
, directly.
alphabet
of class "NucleotideAlphabet" return a new uninitialized
"BioString" object for that alphabet with length
length.string
. See BioString-class
for more
details.mapping
slot. Saikat DebRoy
myDNAAlph <- new("NucleotideAlphabet", letters=c('A', 'G', 'C', 'T')) myDNAAlph BioStringNewValues(myDNAAlph, 20)