reduce_panel.Rd
Reduce panel regions to input target ranges by respecting a minimum region size.
reduce_panel(reg_gr, target_gr, min_size = 100)
A GRanges object with regions defining the panel.
A GRanges object with regions defining the target regions to which the panel should be reduced.
integer size in bp as the minimal size an individual region can be reduced to.
In cases where the overlapping part of an input region with a target region
is smaller than min_size
, the overlapping part will be resized to min_size
by fixing the center of the overlapping part.