def parse_checkM_tables(tables):
g2info = {}<EOL>for table in tables:<EOL><INDENT>for line in open(table):<EOL><INDENT>line = line.strip().split('<STR_LIT:\t>')<EOL>if line[<NUM_LIT:0>].startswith('<STR_LIT>'):<EOL><INDENT>header = line<EOL>header[<NUM_LIT:8>] = '<STR_LIT>'<EOL>header[<NUM_LIT:5>] = '<STR_LIT>'<EOL>header[<NUM_LIT:6>] = '<STR_LIT>'<EOL>continue<EOL><DEDENT>ID, info = line[<NUM_LIT:0>], line<EOL>info = [to_int(i) for i in info]<EOL>ID = ID.replace('<STR_LIT:U+0020>', '<STR_LIT>')<EOL>g2info[ID] = {item:stat for item, stat in zip(header, info)}<EOL>if g2info[ID]['<STR_LIT>'] == '<STR_LIT>':<EOL><INDENT>g2info[ID]['<STR_LIT>'] = <NUM_LIT:0><EOL><DEDENT><DEDENT><DEDENT>return g2info<EOL>
convert checkM genome info tables to dictionary