def intervalCoverage(interval):
    """
    Calculates the base pairs covered by an interval.
    :param interval:
    :return:
    """
    coverage = 0
    for i in interval:
        coverage = coverage + (i[1] - i[0])
    return coverage