def make_col_color_heatmap(group_dic, args=None):
    common_color = ['blue', 'red', 'green', 'grey']
    color = {}
    length = {}
    temp = 0
    i = 0
    for (name, group) in group_dic.items():
        length[name] = [temp, (temp + len(group))]
        temp += len(group)
        for sample in group:
            color[sample] = common_color[i]
        i += 1
    if (args.ac and args.bc):
        color[group1] = args.ac
        color[group2] = args.bc
    color = pd.Series(color)
    color.name = 'group'
    return (color, length)
def make_col_color_heatmap(group_dic, args=None):
    common_color = ['blue', 'red', 'green', 'grey']
    color = {}
    length = {}
    temp = 0
    i = 0
    for (name, group) in group_dic.items():
        length[name] = [temp, (temp + len(group))]
        temp += len(group)
        for sample in group:
            color[sample] = common_color[i]
        i += 1
    if (args.ac and args.bc):
        color[group1] = args.ac
        color[group2] = args.bc
    color = pd.Series(color)
    color.name = 'group'
    return (color, length)