code: def _load_nucmer_hits(self, infile):
          '''Returns two dictionaries:
             1) name=>contig length.
             2) Second is dictionary of nucmer hits (ignoring self matches).
                contig name => list of hits'''
          hits = {}
          lengths = {}
          file_reader = pymummer.coords_file.reader(infile)
          for al in file_reader:
              if al.qry_name == al.ref_name:
                  continue
              elif al.qry_name not in hits:
                  hits[al.qry_name] = []
              hits[al.qry_name].append(al)
              lengths[al.qry_name] = al.qry_length
              lengths[al.ref_name] = al.ref_length
          return lengths, hitf _load_nucmer_hits(self, infile):
          '''Returns two dictionaries:
             1) name=>contig length.
             2) Second is dictionary of nucmer hits (ignoring self matches).
                contig name => list of hits'''
          hits = {}
          lengths = {}
          file_reader = pymummer.coords_file.reader(infile)
          for al in file_reader:
              if al.qry_name == al.ref_name:
                  continue
              elif al.qry_name not in hits:
                  hits[al.qry_name] = []
              hits[al.qry_name].append(al)
              lengths[al.qry_name] = al.qry_length
              lengths[al.ref_name] = al.ref_length
          return lengths, hits
docs: Returns two dictionaries:
             1) name=>contig length.
             2) Second is dictionary of nucmer hits (ignoring self matches).
                contig name => list of hits