powered by
slide_apply applies a function to a sliding window of codons.
slide_apply
slide_apply(seq, .f, step = 1, before = 0, after = 0, ...)
data.table with start, center, end, and codon usage index columns
DNAString, the sequence
function, the codon index calculation function to apply, for example, get_enc.
get_enc
integer, the step size in number of codons
integer, the number of codons before the center of a window
integer, the number of codons after the center of a window
additional arguments to pass to the function .f
.f
slide_apply(yeast_cds[[1]], get_enc, step = 1, before = 10, after = 10)
Run the code above in your browser using DataLab