translateDNA: Translate nucleotide sequences to amino acids

Description Usage Arguments Value See Also Examples

View source: R/Sequence.R

Description

translateDNA translates nucleotide sequences to amino acid sequences.

Usage

1

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

1
2
3
4
5
6
7
8
# 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 May 20, 2017, 3:22 a.m.

Search within the alakazam package
Search all R packages, documentation and source code