translateDNA | R Documentation |
translateDNA
translates nucleotide sequences to amino acid sequences.
translateDNA(seq, trim = FALSE)
seq |
vector of strings defining DNA sequence(s) to be converted to translated. |
trim |
boolean flag to remove 3 nts from both ends of seq (converts IMGT junction to CDR3 region). |
A vector of translated sequence strings.
translate
.
# Translate a single sequence
translateDNA("ACTGACTCGA")
# Translate a vector of sequences
translateDNA(ExampleDb$junction[1:3])
# Remove the first and last codon from the translation
translateDNA(ExampleDb$junction[1:3], trim=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.