| gseq.comp | R Documentation |
Takes a DNA sequence string and returns its complement (without reversing).
gseq.comp(seq)
seq |
A character vector containing DNA sequences (using A,C,G,T). Preserves case and handles NA values. |
A character vector of the same length as the input, containing the complemented sequences
gseq.revcomp, gseq.rev
gseq.comp("ACTG") # Returns "TGAC"
gseq.comp(c("ACTG", "GGCC")) # Returns c("TGAC", "CCGG")
gseq.comp(c("ACTG", NA, "GGCC")) # Returns c("TGAC", NA, "CCGG")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.