grevcomp {misha} | R Documentation |
Get reverse complement of DNA sequence
Description
Takes a DNA sequence string and returns its reverse complement.
Usage
grevcomp(seq)
Arguments
seq |
A character vector containing DNA sequences (using A,C,G,T). Ignores other characters and NA values. |
Value
A character vector of the same length as the input, containing the reverse complement sequences
Examples
grevcomp("ACTG") # Returns "CAGT"
grevcomp(c("ACTG", "GGCC")) # Returns c("CAGT", "GGCC")
grevcomp(c("ACTG", NA, "GGCC")) # Returns c("CAGT", NA, "GGCC")
[Package misha version 4.3.6 Index]