def HalfIdentity(entry1, entry2, max_slippage=0):

    return (entry1.contig == entry2.contig and
            entry1.strand == entry2.strand and
            (abs(entry1.end - entry2.end) < max_slippage or
             abs(entry1.start - entry2.start < max_slippage)))
returns true, if entry1 and entry2 overlap and at least one end is
dataset/ETHPy150Open CGATOxford/cgat/CGAT/GTF.py/HalfIdentity