| translate {microseq} | R Documentation |
The translation from DNA(RNA) to amino acid sequence according to the standard genetic code.
translate(nuc.sequences, M.start = TRUE)
nuc.sequences |
Character vector containing the nucleotide sequences. |
M.start |
A logical indicating if the amino acid sequence should start with M regardless of start codon (ATG, GTG or TTG). |
This function uses the Biostrings::translate function.
A character vector of translated sequences.
Lars Snipen and Kristian Hovde Liland.
ex.file <- file.path(file.path(path.package("microseq"),"extdata"),"small.fasta")
fdta <- readFasta(ex.file)
translate(fdta$Sequence)