Translation according to the standard genetic code

Share:

Description

The translation from DNA(RNA) to amino acid sequence according to the standard genetic code.

Usage

1
translate(nuc.sequences, M.start = TRUE)

Arguments

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).

Details

This function uses the Biostrings::translate function.

Value

A character vector of translated sequences.

Author(s)

Lars Snipen and Kristian Hovde Liland.

Examples

1
2
3
ex.file <- file.path(file.path(path.package("microseq"),"extdata"),"small.fasta")
fdta <- readFasta(ex.file)
translate(fdta$Sequence)