#NEWLINE# def Identity( entry1 , entry2 , max_slippage = 0 ) : #NEWLINE# #INDENT# 'returns true, if entry1 and entry2 are (almost) identical, allowing\n    a small amount of slippage at either end.\n    ' #NEWLINE# return ( ( entry1 . contig == entry2 . contig ) and ( entry2 . strand == entry2 . strand ) and ( abs ( ( entry1 . end - entry2 . end ) ) < max_slippage ) and abs ( ( ( entry1 . start - entry2 . start ) < max_slippage ) ) )