translate: Translate a DNA sequence into an amino acid sequence.

Description Usage Arguments Value Examples

Description

Translate a vector of DNA nucleotides sequence into an amino acid sequence.

Usage

1
translate(nt_sequence, check_start_and_stop = TRUE)

Arguments

nt_sequence

An in-frame vector of nucleotides, i.e. c("A","T","G","T" ,"A","G"). The first and last codons should be start and stop codons.

check_start_and_stop

Logical indicating whether the first and last codons need to be start and stop codons, respectively.

Value

A vector of amino acids.

Examples

1
2
3
translate(
c("A","T","G","T","A","G")
)

zcolburn/evolution documentation built on May 19, 2019, 1:48 a.m.