In [1]:
from msdas import *
%pylab inline
matplotlib.rcParams['savefig.dpi'] = 2 * matplotlib.rcParams['savefig.dpi']
In [2]:
r = readers.MassSpecReader(get_yeast_small_data())
In [3]:
c = clustering.MSClustering(r)
In [4]:
c.plot_vectors("HOG1")
In [5]:
c.run_affinity_propagation_clustering()
Out[5]:
In [6]:
try:del c.df['cluster']
except:pass
c.plot_vectors("DIG1", legend=False, scale=False)
ax = gca()
patches, labels = ax.get_legend_handles_labels()
ax.legend(patches,labels, fontsize=5, loc="best")
Out[6]:
In [ ]: