This is a crazy simple package that only tanslates DNA or RNA sequences into amino acid codes. It does not support ambiguity codes. It only will work correctly for sequences that are from the nuclear genome of eukaryotes.
This R package can be installed directly from GitHub using the following code. The devtools installation step can be skipped if you have already installed that package.
install.packages("devtools") library(devtools) install_github('coleoguy/tRanslate', build_vignettes = T)
The code below will generate a statement which we feel is important for all scientists to agree with.
# load the package library(tRanslate) # create a DNA sequence data <- "ATGtacacagctaaaGAacggauuuctacacatGAAGgtagagaggccacagagagcacguag" # translate the DNA sequence to IUPAC amino acid abbs. Translate(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.