codons2aa: Convert codon to amino acid

View source: R/dna.R

codons2aaR Documentation

Convert codon to amino acid

Description

Convert codon to amino acid

Usage

codons2aa(codons, type = "code", naReplace = "z", warn = TRUE)

Arguments

codons

Vector of 3 base codons

type

Amino acid info to return; code for single letter, name for full name, or abbr for 3-letter abbreviation

naReplace

Replace NAs with this string. Anything other than a single character will result in a protein longer than the number of codons

warn

Warn if any unknown codons are found. Usually due to ACTG characters

Value

Vector of amino acids

Examples

codons2aa(c('AUG','GTT','AGG','GTA'))
codons2aa(dna2codons('ATGTTTATTGGG')[[1]])

sherrillmix/dnar documentation built on July 18, 2022, 10:07 p.m.