revc | R Documentation |
string.vec
Based on reverseComplement
.
Handles IUPAC ambiguity codes but not "u" (uracil).
(see <https://en.wikipedia.org/wiki/Nucleic_acid_notation>).
revc(string.vec)
string.vec |
A character vector. |
A character vector with the reverse complement of every
string in string.vec
.
revc("aTgc") # GCAT
# A vector and strings with ambiguity codes
revc(c("ATGC", "aTGc", "wnTCb")) # GCAT GCAT VGANW
## Not run:
revc("ACGU") # An error
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.