我使用pylab和scipy编写了一个python脚本,根据这篇文章从表达式矩阵输出层次结构的热图和树形图:plotting results of hierarchical clustering ontop of a matrix of data in python

现在我想将我的数组和基因(列和行)树形图导出到文本文件中,以便程序TreeView也可以查看这些数据(例如,cdt,gtr,atr文件) . 有任何人对此有经验吗?

谢谢