seq_to_codons | R Documentation |
seq_to_codons
converts a coding sequence (CDS) into a vector of codons by
splitting the sequence into non-overlapping triplets starting from the first position.
seq_to_codons(seq)
seq |
A coding sequence as a DNAString object, or any object that can be coerced to a DNAString (e.g., character string). |
A character vector where each element represents a codon (3-nucleotide sequence).
# Convert a CDS sequence to a sequence of codons
seq_to_codons('ATGTGGTAG')
seq_to_codons(yeast_cds[[1]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.