This function takes CDS sequence as string as input an returns the corresponding amino acid sequence as string.

transl(sequence)

Arguments

sequence

a character string specifying CDS sequence of interest.

Value

A character string specifying the corresponding amino acid sequence.

References

translate

Author

Hajk-Georg Drost and Sarah Scharfenberg

Examples


# an example DNA sequence
DNA <- c("ACCGGTTTAAAGGCGTTA")

# translating DNA to a protein sequence
transl(DNA)
#> [1] "TGLKAL"