Get complement sequence and reverse sequence of your DNA sequence.
library(devtools)
install_github("lrjoshi/RevcomR")
This package performs three functions
Retruns complement sequence of the given DNA sequence
Returns reverse sequence of the given DNA sequence
If you use both functions in order you can get reverse complement of your sequence.
mycomplement (x)
reverse(x)
x : your DNA string provided inside quote (" ") sign. See Example.
Be careful about reverse and reverse complement. To get the reverse complement you will have to get the complement of your sequence and then you can use the output of the ">mycomplement" function to get the reverse complement using ">reverse" function.
library(RevcomR)
mycomplement("agtc")
[1] "The complement sequence is:- TCAC"
reverse("aag")
[1] "Reverse of your sequence is :- gaa"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.