Nucleotide to amino acid sequence translation

bunch_translate(.seq, .two.way = TRUE)

Arguments

.seq

Vector or list of strings.

.two.way

Logical. If TRUE (default) then translate from the both ends (like MIXCR).

Value

Character vector of translated input sequences.

Examples

data(immdata)
head(bunch_translate(immdata$data[[1]]$CDR3.nt))
#> [1] "CASSQEGTGYSGELFF"  "CASSYRVGTDTQYF"    "CATSTNRGGTPADTQYF"
#> [4] "CATSIGGGSYEQYF"    "CASSPWTGSMALHF"    "CASQGDSFNSPLHF"