slide_codon | R Documentation |
slide_codon
generates a data.table with start, center, and end columns
for a sliding window analysis of codons.
slide_codon(seq, step = 1, before = 0, after = 0)
seq |
DNAString, the sequence |
step |
integer, the step size |
before |
integer, the number of codons before the center of a window |
after |
integer, the number of codons after the center of a window |
data.table with start, center, and end columns
x <- Biostrings::DNAString('ATCTACATAGCTACGTAGCTCGATGCTAGCATGCATCGTACGATCGTCGATCGTAG')
slide_codon(x, step = 3, before = 1, after = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.