Learn R Programming

alakazam (version 1.2.1)

translateDNA: Translate nucleotide sequences to amino acids

Description

translateDNA translates nucleotide sequences to amino acid sequences.

Usage

translateDNA(seq, trim = FALSE)

Value

A vector of translated sequence strings.

Arguments

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).

See Also

translate.

Examples

Run this code
# 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)

Run the code above in your browser using DataLab