translateDNA: Translate nucleotide sequences to amino acids

translateDNAR Documentation

Translate nucleotide sequences to amino acids

Description

translateDNA translates nucleotide sequences to amino acid sequences.

Usage

translateDNA(seq, trim = FALSE)

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

Value

A vector of translated sequence strings.

See Also

translate.

Examples

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


alakazam documentation built on Sept. 30, 2023, 9:07 a.m.