Skip to contents

Iterates through the segments in segments and firstly checks if the segment meets the definition of an LGA:

  1. Segment and Previous are in the same chromosome arm.

  2. Size of space between Segment and Previous is less than 3Mb. Then, we check that:

  3. Size of Segment >= size_lga

  4. Size of Previous >= size_lga Finally, 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).

Usage

DetermineNumberOfLGAs(threshold, size_lga, segments)

Arguments

threshold

A float. Threshold in ratio_median difference previously estimated.

size_lga

An integer: size of the LGA to look for.

segments

A data frame: segment data.