Heat map of hierarchical clustering

Code to cluster features, easily modified to cluster samples also.

Authors: Andrei Todor, Shuzhao Li

In [1]:
import pandas as pd
import seaborn as sns
infile = "../results/pvals_pos.txt"
mydata = pd.read_table(infile)
sns.set()
d = mydata.loc[mydata.pval < 0.01, :].iloc[:, 5:]
g = sns.clustermap(d,col_cluster=False, z_score=0, figsize=(10, 10))
sns.plt.show()
In [8]:
 
In [30]:
print(1)
1
In [ ]: