def read_table(file):
    """
    convert to html format table
    """
    data = {}
    with open(file, 'r') as f:
        header = f.readline().replace('\n', '').split('\t')
        for item in header:
            data[item] = []
        for line in f.readlines():
            line = line.replace('\n', '')
            temp = line.split('\t')
            for i in range(len(temp)):
                data[header[i]].append(temp[i])
    return data, header
