
Determines if the given segments are LGAs of the given size
DetermineNumberOfLGAs.RdIterates through the segments in segments and firstly checks if the segment meets the definition
of an LGA:
Segment and Previous are in the same chromosome arm.
Size of space between Segment and Previous is less than 3Mb. Then, we check that:
Size of Segment >=
size_lgaSize of Previous >=
size_lgaFinally, we check that ratio_median difference between Segment and Previous > THR. If so, then mark segment as an LGA (via 1's in the output frame).