def clip_end(self, seq, mm_score):
lim = mm_score - <NUM_LIT:1><EOL>other_end = len(seq) - <NUM_LIT:1><EOL>other_start = <NUM_LIT:0><EOL>for i in range(len(self.sequenceData) - <NUM_LIT:1>, lim - <NUM_LIT:1>, -<NUM_LIT:1>):<EOL><INDENT>self_end = i<EOL>self_start = i - (len(seq) - <NUM_LIT:1>)<EOL>if self_start < <NUM_LIT:0>:<EOL><INDENT>self_start = <NUM_LIT:0><EOL>other_start = other_end - self_end<EOL><DEDENT>score = self.similarity(self_start, self_end, other_start,<EOL>other_end, seq)<EOL>if (score >= mm_score):<EOL><INDENT>self.nsRight(len(seq) + (len(self) - i) - <NUM_LIT:1>)<EOL>break<EOL><DEDENT><DEDENT>
Clip a sequence from the end of this sequence -- we assume the sequence
to be clipped will always begin somewhere in this sequence, but may not
be fully contained. If found, replaced with Ns.

:param seq: sequence to be clipped
:param mm_score: the number of matching bases needed to consider a hit,
                 mm_score = len(seq) would be 100% match