Nucleotide to amino acid sequence translation
Usage
bunch_translate(.seq, .two.way = TRUE, .ignore.n = FALSE)
Arguments
- .seq
Vector or list of strings.
- .two.way
Logical. If TRUE (default) then translate from the both ends (like MIXCR).
- .ignore.n
Logical. If FALSE (default) then return NA for sequences that have N, else parse triplets with N as ~
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"