Learn R Programming

microseq (version 1.0)

translate: Translation according to the standard genetic code

Description

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

Usage

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

Value

A character vector of translated sequences.

Details

This function uses the Biostrings::translate function.

Examples

Run this code
ex.file <- file.path(file.path(path.package("microseq"),"extdata"),"small.fasta")
fdta <- readFasta(ex.file)
translate(fdta$Sequence)

Run the code above in your browser using DataLab