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.

Installation

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)

Example Code

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)


coleoguy/tRanslate documentation built on Nov. 12, 2019, 12:04 a.m.