AAtoCodonOptimizedDNA: Convert Amino Acid sequence to Codon Optimized DNA

AAtoCodonOptimizedDNAR Documentation

Convert Amino Acid sequence to Codon Optimized DNA

Description

Do the reverse translation from amino acids back to DNA nucleotides, using a reference DNA sequence as a source of codon usage frequency.

Usage

AAtoCodonOptimizedDNA(aa, dnaRef)

Arguments

aa

A character string of valid amino acids.

dnaRef

A character string of DNA, in frame, usually large, that represents the typical codon usage frequency.

Details

Since the mapping from AA to DNA is not unique, the user provides a chunk of DNA reference, that will be converted to AA and used to model the frequency distribution for randomly selecting DNA codons from each amino acid.

Value

a character string, of length nchar(aa) * 3, of DNA that is a valid reverse translation of the given amino acid string.

Note

Passes the frequency distribution of codons found in dnaRef to sample, to randomly select codons with a usage frequency similar to the given reference DNA.

Author(s)

Bob Morrison

See Also

See Also DNAtoAA, getCodonMap


robertdouglasmorrison/DuffyTools documentation built on March 24, 2024, 4:19 p.m.