def heatmap_dendrogram(dataframe, outfile, options):
'''
Create a full clustered heatmap using Seaborn
'''
if options.corr:
sns_plot = sns.clustermap(dataframe, cmap="RdBu", linewidths=.3, method='complete', metric='euclidean')
else:
sns_plot = sns.clustermap(dataframe, cmap="RdBu", linewidths=.3)
sns.plt.setp(sns_plot.ax_heatmap.yaxis.get_majorticklabels(), rotation=0)
sns.plt.suptitle(options.hlabel)
sns_plot.savefig(outfile, bbox_inches='tight', dpi=options.dpi)
评论列表
文章目录