
Deals with merging small segment to next_large segment.
MergeSegmentsFiveSmallNextLarge.Rd
Deals with the second option.
Arguments
- granges_obj
A GRanges object: is used as reference to obtain true genomic data from specified regions.
- small_segment
An array: the given small segment that might be merged into the
large_segments
frame.- large_segments
A data frame: segment data. Initially contains only segments with size >= 3Mb, but as we merge small segments into it, smaller segments are progressively added.
- j
An integer/index: the position of the large segment we're comparing with small_segment, within
large_segments
.- end_of_file
A boolean: whether there's any large segments after
j
.