pkgdown/header.html

Skip to contents

This function creates sliding windows over a single chromosome's reduced tag cluster regions (as `GRanges`), typically generated from extended CTSS clusters. Each window is centered at regular intervals and then expanded on both ends by a specified distance.

Usage

tc_sliding_window_chr(gr_per_chr, sld_by = 20, ext_dis = 200)

Arguments

gr_per_chr

A `GRanges` object containing ranges for a single chromosome, representing reduced and uniformly extended tag clusters (TCs).

sld_by

Integer. Sliding window step size in base pairs (default: 20).

ext_dis

Integer. Number of base pairs to expand the window on both sides (default: 200).

Value

A `GRanges` object containing all expanded sliding windows for the input chromosome.

Details

It is designed to be called internally for each chromosome by `plc_tc_sliding_window()` and should not require strand specificity.

Examples

gr_chr <- GenomicRanges::GRanges(
  seqnames = "chr1",
  ranges = IRanges::IRanges(start = c(100, 200), end = c(150, 250))
)
windows <- tc_sliding_window_chr(gr_chr, sld_by = 20, ext_dis = 200)
#> Error in tc_sliding_window_chr(gr_chr, sld_by = 20, ext_dis = 200): could not find function "tc_sliding_window_chr"