code: def _get_longest_hit_at_ref_end(self, nucmer_hits, hits_to_exclude=None):
          '''Input: list of nucmer hits to the same reference. Returns the longest hit to the end of the reference, or None if there is no such hit'''
          if hits_to_exclude is None:
              hits_to_exclude = set()
          hits_at_end = [hit for hit in nucmer_hits if self._is_at_ref_end(hit) and hit not in hits_to_exclude]
          return self._get_longest_hit_by_ref_length(hits_at_endf _get_longest_hit_at_ref_end(self, nucmer_hits, hits_to_exclude=None):
          '''Input: list of nucmer hits to the same reference. Returns the longest hit to the end of the reference, or None if there is no such hit'''
          if hits_to_exclude is None:
              hits_to_exclude = set()
          hits_at_end = [hit for hit in nucmer_hits if self._is_at_ref_end(hit) and hit not in hits_to_exclude]
          return self._get_longest_hit_by_ref_length(hits_at_end)
docs: Input: list of nucmer hits to the same reference. Returns the longest hit to the end of the reference, or None if there is no such hit