AAString(x="", start=1, nchar=NA)
## Predefined constants:
AA_ALPHABET # full Amino Acid alphabet
AA_STANDARD # first 20 letters only
AA_PROTEINOGENIC # first 22 letters onlyx and how many letters to read.
?AMINO_ACID_CODE)
plus "*" (the stop letter), "-" (the gap
letter), "+" (the hard masking letter), and "."
(the not a letter or not available letter).
It is stored in the AA_ALPHABET predefined constant (character
vector). The alphabet() function returns AA_ALPHABET when
applied to an AAString object.x can be a single string (character vector of length 1)
or a BString object. AAString(x="", start=1, nchar=NA):
Tries to convert x into an AAString object by reading
nchar letters starting at position start in x.
Unlike the BString container that allows storage of any single string (based on a single-byte character set) the AAString container can only store a string based on the Amino Acid alphabet (see below).
AMINO_ACID_CODE,
letter,
XString-class,
alphabetFrequency
AA_ALPHABET
a <- AAString("MARKSLEMSIR*")
length(a)
alphabet(a)
Run the code above in your browser using DataLab