def save_data_pdf(data, name, length, color, group_dic, which, args=None):
    data.to_csv(('%s.txt' % name), sep='\t')
    length = {key.split('/')[(- 1)]: value for (key, value) in length.items()}
    group_dic = {key.split('/')[(- 1)]: value for (key, value) in group_dic.items()}
    try:
        pheatmap(data, length, col_cluster=True, color=color, name=name, args=args)
        pheatmap(data, length, col_cluster=False, color=color, name=name, args=args)
    except MemoryError:
        print('you gene need too much MemoryError and i, so pass and do next')
    pca(data, group_dic, n=name, args=args)
    databox(data, which, outname=name, group=group_dic, args=args)
def save_data_pdf(data, name, length, color, group_dic, which, args=None):
    data.to_csv(('%s.txt' % name), sep='\t')
    length = {key.split('/')[(- 1)]: value for (key, value) in length.items()}
    group_dic = {key.split('/')[(- 1)]: value for (key, value) in group_dic.items()}
    try:
        pheatmap(data, length, col_cluster=True, color=color, name=name, args=args)
        pheatmap(data, length, col_cluster=False, color=color, name=name, args=args)
    except MemoryError:
        print('you gene need too much MemoryError and i, so pass and do next')
    pca(data, group_dic, n=name, args=args)
    databox(data, which, outname=name, group=group_dic, args=args)