Reverse-complementation of DNA
The standard reverse-complement of nucleotide sequences.
reverseComplement(nuc.sequences, reverse = TRUE)
nuc.sequences |
Character vector containing the nucleotide sequences. |
reverse |
Logical indicating if complement should be reversed. |
With reverse = FALSE the DNA sequence is only complemented, not reversed.
This function will handle the IUPAC ambiguity symbols, i.e. R is reverse-complemented to Y etc.
A character vector of reverse-complemented sequences.
Lars Snipen and Kristian Hovde Liland.
fa.file <- file.path(file.path(path.package("microseq"),"extdata"),"small.ffn") fa <- readFasta(fa.file) reverseComplement(fa$Sequence) #' # Or, make use of dplyr to manipulate tables readFasta(fa.file) %>% mutate(RevComp = reverseComplement(Sequence)) -> fa.tbl
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.