def _write_results(self, db_count, output_path):
logging.debug("<STR_LIT>" % output_path)<EOL>output_dict = {}<EOL>for idx, value_dict in enumerate(db_count.values()):<EOL><INDENT>for database, count in value_dict.iteritems():<EOL><INDENT>if database in output_dict:<EOL><INDENT>output_dict[database].append(str(count))<EOL><DEDENT>else:<EOL><INDENT>output_dict[database] = ['<STR_LIT:0>']*idx + [str(count)]<EOL><DEDENT><DEDENT>for key, item in output_dict.iteritems():<EOL><INDENT>if len(item) == idx:<EOL><INDENT>output_dict[key].append('<STR_LIT:0>')<EOL><DEDENT><DEDENT><DEDENT>with open(output_path, '<STR_LIT:w>') as out:<EOL><INDENT>out.write('<STR_LIT:\t>'.join(["<STR_LIT>"] + db_count.keys()) + '<STR_LIT:\n>')<EOL>for key, item in output_dict.iteritems():<EOL><INDENT>out.write("<STR_LIT>" % (key, '<STR_LIT:\t>'.join(item)) + '<STR_LIT:\n>' )<EOL><DEDENT><DEDENT>
Write the table to the output_path directory

        db_count: dict
            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
                             ...}
                 ...
                }

        output_path: str
            Path to output file to which the resultant output file will be 
            written to.