knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

reversetranslate

Travis build status Codecov test coverage Lifecycle: experimental CRAN status AppVeyor build status

The goal of reversetranslate is to provide a set of R functions to assist users in reverse translating an amino acid sequence to DNA nucleotides.

Installation

You can install the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("greg-botwin/reversetranslate")

General Details

Users can supply their own Codon Frequency Table relevant to the organism they are most interested in simulating the reverse translation in or use one of the commonly desired options supplied. Users can also select between the following three different models of reverse translation depending on what assumptions you want to make regarding how redundant codons are chosen and your intended application.

  1. proportional
  2. equal
  3. GC biased

The user may also choose to limit the inclusion of low frequency codons into the reverse translated nucleotide sequence.

The package currently maintains Codon Frequency Tables for:

Additional details on package functionality can be found by viewing the package vignette.

Example

Load Package

library(reversetranslate)

Example Amino Acid Sequence

minimal_aa_seq

Example Codon Frequency Table

minimal_freq_tbl

Example Reverse Translation

reverse_translate(amino_acid_seq = minimal_aa_seq, codon_tbl = minimal_freq_tbl,
                  limit = 0, model = "proportional")

Support

This work was supported by Cedars-Sinai Precision Health.



greg-botwin/reversetranslate documentation built on Aug. 24, 2019, 4:04 a.m.