window_regions: Generate GRangesList of windows

Description Usage Arguments Value

View source: R/tss_predictor.R

Description

Generates a set of windows for each element in a GRanges-class object. Uses the center of each region as the 0th co-ordinate in generating windows.

Usage

1
window_regions(sites, bins = 21L, bin_width = 51L)

Arguments

sites

a GRanges-class containing the sites of interest. The central site of this range will be the focal site used to generate bins

bins

a single value or vector of length equal to bin_width indicating the number of bins to generate, with the central bin centered on the focal site, must be odd

bin_width

a vector of one or more odd valued integers indicating the width of the bins to be generated. If multiple value are specified, windows are generated for all sizes specified

Value

A list of vectors with each one corresponding to one set of bins and each element of a vector corresponding to a bin


CshlSiepelLab/DENR documentation built on July 16, 2021, 10:42 p.m.