Learn R Programming

cubar (version 1.1.0)

seq_to_codons: Convert CDS to codons

Description

seq_to_codons converts a coding sequence to a vector of codons

Usage

seq_to_codons(seq)

Value

a character vector of codons

Arguments

seq

DNAString, or an object that can be coerced to a DNAString

Examples

Run this code
# convert a CDS sequence to a sequence of codons
seq_to_codons('ATGTGGTAG')
seq_to_codons(yeast_cds[[1]])

Run the code above in your browser using DataLab