This function takes CDS sequence as string as input an returns the corresponding amino acid sequence as string.
transl(sequence)
a character string specifying CDS sequence of interest.
A character string specifying the corresponding amino acid sequence.
# an example DNA sequence
DNA <- c("ACCGGTTTAAAGGCGTTA")
# translating DNA to a protein sequence
transl(DNA)
#> [1] "TGLKAL"