import re


def get_gap_def(min_gap_len):
    """
    Sets up the regular expression for splitting sequences into contigs and gaps
    example:
        get_gap_def(20)
    returns
         re.compile(r'(N{20,})')
    """
    return re.compile('(N{%i,})' % min_gap_len)