Converting DNA ambiguity symbols to regular expressions, and vice versa.
Usage
iupac2regex( s )
regex2iupac( s )
Arguments
s
Character string containing a DNA sequence.
Value
A string where the ambiguity symbol has been replaced by a regular expression
(iupac2regex) or a regular expression has been replaced by an ambiguity symbol
(regex2iupac).
Details
The DNA alphabet may contain ambiguity symbols, e.g. a W means either A or T.
When using a regular expression search, these letters must be replaced by the proper
regular expression, e.g. W is replaced by [AT] in the string. These function makes this
translations