aa2codons: Find the DNA to code for a given amino acid

View source: R/dna.R

aa2codonsR Documentation

Find the DNA to code for a given amino acid

Description

Find the DNA to code for a given amino acid

Usage

aa2codons(aas, type = "code", regex = TRUE)

Arguments

aas

single amino acids to convert to dna

type

code or abbr or name

regex

if true return a (X|Y) regex of codons else return vector

Value

A list of vectors of codons if regex=FALSE else a regular expression matching the possible codons

Examples

aa2codons(c('A','T','X'))
aa2codons(c('A','T','X'),regex=FALSE)
aa2codons(c('Glu','Ala','Xxx'),type='abbr')

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