I've written a python script using pylab and scipy to output hierarchical cluster heatmaps and dendrograms from an expression matrix based on this post: plotting results of hierarchical clustering ontop of a matrix of data in python
Now I would like to export my array and gene (column and row) dendrograms to a text files such that the program TreeView can also view this data (e.g., cdt, gtr, atr files). Does anyone have experience with this?
Thanks