reverse_translate: Reverse translate amino acid Sequence to DNA nucleotides

Description Usage Arguments Value

View source: R/reverse_translate.R

Description

Reverse translate amino acid Sequence to DNA nucleotides

Usage

1
2
reverse_translate(amino_acid_seq, codon_tbl, limit = 0,
  model = "proportional")

Arguments

amino_acid_seq

A character vector of representing amino acid(s).

codon_tbl

A properly formatted Codon Frequency Table with the following column names, c("codon", "aa", "prop"). The Prop column must be of type numeric and all proportions between 0 and 1. The sum of each codons proportion per amino acid equal roughly 1 (0.98 to 1.02 allowed). Please see check_codon_table for more information.

limit

Numerical value set to restrict codons to proportions greater then the set limit. Must be between 0 and 0.49. Defaults to 0, no limit if not set. When limiting rare codons, the residual proportions are split equally amongst the remaining codon options.

model

Either proportional, equal or gc_bias. if a limit is applied, the limit parameter will first be chosen over the GC correction

Value

character vector representing reverse translated DNA nucleotide codons.


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