grevcomp | R Documentation |
Takes a DNA sequence string and returns its reverse complement.
grevcomp(seq)
seq |
A character vector containing DNA sequences (using A,C,G,T). Ignores other characters and NA values. |
A character vector of the same length as the input, containing the reverse complement sequences
grevcomp("ACTG") # Returns "CAGT"
grevcomp(c("ACTG", "GGCC")) # Returns c("CAGT", "GGCC")
grevcomp(c("ACTG", NA, "GGCC")) # Returns c("CAGT", NA, "GGCC")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.