Generate Sliding Windows for a Single Chromosome
tc_sliding_window_chr.RdThis 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.
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"