slide
creates a data.table defining sliding window positions for
analyzing sequences or data along a continuous range. This function provides
the foundation for positional analyses of codon usage patterns within genes.
Arguments
- from
Integer specifying the start position of the analysis range.
- to
Integer specifying the end position of the analysis range.
- step
Integer specifying the step size between consecutive window centers (default: 1). Larger values create non-overlapping or less overlapping windows.
- before
Integer specifying the number of positions to include before the window center (default: 0). Determines the left boundary of each window.
- after
Integer specifying the number of positions to include after the window center (default: 0). Determines the right boundary of each window.