split_codons | R Documentation |
Split RNA sequence into codons
split_codons(rna_string, start = 1)
rna_string |
A character object with a RNA sequence. |
start |
An integer specifying the position in the RNA sequence where the reading frame starts. |
An atomic character vector with a sequence of codons corresponding to the specified reading frame of the RNA sequence.
rna_string <- "ATCGTACGATATGATACAGAGATAGACATATTTAACGG" split_codons(rna_string) # "ATC" "GTA" "CGA" "TAT" "GAT" "ACA" "GAG" "ATA" "GAC" "ATA" "TTT" "AAC" split_codons(rna_string, start = 5) # "TAC" "GAT" "ATG" "ATA" "CAG" "AGA" "TAG" "ACA" "TAT" "TTA" "ACG"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.