View source: R/seq_biological_operations.R
seq_rev_translate | R Documentation |
The function perform reverse translation of amino acid sequences. Such operation does not exist in nature but is provided for completeness. Because of codon degeneracy it is expected to produce many ambiguous nucleotides.
seq_rev_translate(x, code = 1)
x |
an amino acid sequence ( |
code |
an integer indicating the genetic code to use for reverse translation (default 1 uses the Standard genetic code). See Details. |
Gaps (-) are interpreted as unknown amino acids (X) but can be
removed prior to the translation with the function seq_remove_gap
.
a vector of DNA sequences.
Other biological operations:
rev_complement
,
seq_translate()
,
transcription
x <- dna("ACTTTGGCTAAG") y <- seq_translate(x) z <- seq_rev_translate(y) z # There is a loss of information during the reverse translation all.equal(x, z)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.