powered by
This function returns the list of nucleotide matching a given IUPAC nucleotide symbol, for instance c("c", "g") for "s".
c("c", "g")
"s"
amb(base, forceToLower = TRUE, checkBase = TRUE, IUPAC = s2c("acgturymkswbdhvn"), u2t = TRUE)
an IUPAC symbol for a nucleotide as a single character
if TRUE the base is forced to lower case
if TRUE the character is checked to belong to the allowed IUPAC symbol list
the list of allowed IUPAC symbols
if TRUE "u" for uracil in RNA are changed into "t" for thymine in DNA
When base is missing, the list of IUPAC symbols is returned, otherwise a vector with expanded symbols.
Non ambiguous bases are returned unchanged (except for "u" when u2t is TRUE).
The nomenclature for incompletely specified bases in nucleic acid sequences at: http://www.chem.qmul.ac.uk/iubmb/misc/naseq.html
citation("seqinr")
See bma for the reverse operation. Use tolower to change upper case letters into lower case letters.
bma
tolower
# NOT RUN { # # The list of IUPAC symbols: # amb() # # And their expansion: # sapply(amb(), amb) # }
Run the code above in your browser using DataLab