def _interpret_hits(self, results_list, base_list):
logging.debug("<STR_LIT>")<EOL>run_results = {}<EOL>for base, results in zip(base_list, results_list): <EOL><INDENT>search_results = {}<EOL>for search in results():<EOL><INDENT>search_list = list(<EOL>search.each([SequenceSearchResult.QUERY_ID_FIELD,<EOL>SequenceSearchResult.ALIGNMENT_BIT_SCORE,<EOL>SequenceSearchResult.HMM_NAME_FIELD])<EOL>)<EOL>for hit in search_list:<EOL><INDENT>if hit[<NUM_LIT:0>] in search_results:<EOL><INDENT>if float(hit[<NUM_LIT:1>]) > search_results[hit[<NUM_LIT:0>]][<NUM_LIT:1>]:<EOL><INDENT>search_results[hit[<NUM_LIT:0>]] = [float(hit[<NUM_LIT:1>]), hit[<NUM_LIT:2>]]<EOL><DEDENT><DEDENT>else:<EOL><INDENT>search_results[hit[<NUM_LIT:0>]] = [float(hit[<NUM_LIT:1>]), hit[<NUM_LIT:2>]]<EOL><DEDENT><DEDENT><DEDENT>run_results[base] = search_results<EOL><DEDENT>db_count = {}<EOL>for run in run_results.keys():<EOL><INDENT>run_count = {}<EOL>for entry in run_results[run].values():<EOL><INDENT>key = entry[<NUM_LIT:1>]<EOL>if key in run_count:<EOL><INDENT>run_count[key] += <NUM_LIT:1><EOL><DEDENT>else:<EOL><INDENT>run_count[key] = <NUM_LIT:1><EOL><DEDENT><DEDENT>db_count[run] = run_count<EOL><DEDENT>return db_count<EOL>
Sort reads that hit multiple HMMs to the databases to which they had
        the highest bit score. Return a dictionary containing HMMs as keys, and 
        number of hits as the values.

        This function is set up so that the read names could easily be returned
        instead of numbers, for future development of GraftM

        Parameters
        ----------
        results_list: list
            Iterable if SequenceSearchResult objects. e.g.
                [SequenceSearchResult_1, SequenceSearchResult_2, ...]

        base_list: list
            Iterable of the basenames for each sequence file provided to graftM
            e.g.
                [sample_1, sample_2, ...]

        Returns
        -------
        dictionary:
            Contains samples as entries. The value for each sample is another 
            dictionary with HMM as the key, and number of hits as values:
                {"sample_1":{HMM_1: 12
                             HMM_2: 35
                             HMM_3: 1258
                             ...}
                 ...
                }