pydit.wrangling.sequence.group_gaps

pydit.wrangling.sequence.group_gaps(gap_list)[source]

Groups a list of gaps into a list of lists of consecutive gaps

Parameters:

gap_list (list) – A list of gaps (integers)

Returns:

A list of lists of consecutive gaps

Return type:

list