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) ) )
Called before template is applied.
dataset/ETHPy150Open CGATOxford/cgat/obsolete/GFF.py/HalfIdentity--crossover with--dataset/ETHPy150Open Pylons/pylons/pylons/util.py/PylonsTemplate.pre