slide_apply | R Documentation |
slide_apply
applies a function to a sliding window of codons.
slide_apply(seq, .f, step = 1, before = 0, after = 0, ...)
seq |
DNAString, the sequence |
.f |
function, the codon index calculation function to apply, for
example, |
step |
integer, the step size in number of codons |
before |
integer, the number of codons before the center of a window |
after |
integer, the number of codons after the center of a window |
... |
additional arguments to pass to the function |
data.table with start, center, end, and codon usage index columns
slide_apply(yeast_cds[[1]], get_enc, step = 1, before = 10, after = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.