Fast Reverse Complement of DNA/RNA Sequences
fast_rc.RdComputes the reverse complement of one or more DNA or RNA sequences using a C++ lookup table for O(1) complement mapping. Supports full IUPAC ambiguity codes and preserves case.
Examples
fast_rc("ATCG")
#> [1] "CGAT"
fast_rc(c("ATCG", "AAGG", NA))
#> [1] "CGAT" "CCTT" NA
fast_rc("AUCG", type = "RNA")
#> [1] "CGAU"