def gaps(self, min_length = <NUM_LIT:1>):
gaps = []<EOL>regex = re.compile('<STR_LIT>', re.IGNORECASE)<EOL>for m in regex.finditer(self.seq):<EOL><INDENT>if m.span()[<NUM_LIT:1>] - m.span()[<NUM_LIT:0>] + <NUM_LIT:1> >= min_length:<EOL><INDENT>gaps.append(intervals.Interval(m.span()[<NUM_LIT:0>], m.span()[<NUM_LIT:1>] - <NUM_LIT:1>))<EOL><DEDENT><DEDENT>return gaps<EOL>
Finds the positions of all gaps in the sequence that are at least min_length long. Returns a list of Intervals. Coords are zero-based