aaa {seqinr} | R Documentation |
This is a vectorized function to convert one-letter amino-acid code into the three-letter one, for instance "A" into "Ala".
aaa(aa)
aa |
A vector of single characters. |
Allowed character values for aa
are given by a()
.
All other values will generate a warning and return NA.
Called without arguments, aaa()
returns the list of
all possible output values.
A vector of char string. All strings are 3 chars long.
J.R. Lobry
The IUPAC one-letter code for aminoacids is described at:
http://www.chem.qmul.ac.uk/iupac/AminoAcid/
citation("seqinr")
# # Show all possible input values: # a() # # Convert them in one letter-code: # aaa(a()) # # Check consistency of results: # stopifnot(a(aaa(a())) == a()) # # Show what's happen with non-allowed values: # aaa("Z") # should be NA and a warning is generated