def overlapCheck(split1, split2):
    """
    Called by cisDataRowNew() and editSingleAmino() to check if two split locations are overlapping. Returns True if
    they do overlap.
    :param split1: the first location, of the form [start, end].
    :param split2: the second location, again of the form [start, end]
    :return: True if the splits overlap, False if not.
    """
    # if the function is recieving a single amino instead of the split reference list, return False as no overelap has
    # already been assured.
    if len(split1) == 1 or len(split2) == 1:
        return False
    split1Set = set(range(split1[0],split1[1]+1))
    split2Set = set(range(split2[0], split2[1] + 1))
    if len(split1Set.intersection(split2Set)) == 0:
        return False
    return True