Ignacio Arroyo

Added cluster persistence log plots

from pdb import set_trace as st
#from pdb import set_trace as st
import os
import matplotlib.pyplot as plt
from numpy import log10
def analyze_pair(group_anlized, gropus_dir, rev, eigenvectors):
......@@ -102,14 +103,14 @@ for i, p in enumerate(plots):
else:
width = 2
mark = ""
ax1.plot(p['part'], p['n_tfs'], c=cmap(i), linewidth=width, marker=mark,
ax1.plot(p['part'], log10(p['n_tfs']), c=cmap(i), linewidth=width, marker=mark,
label=" ".join(p['tfs'][0]))
#ax1.scatter(x[40:],y[40:], s=10, c='r', marker="o", label='second')
plt.legend(loc='upper right')
plt.title("TF pair persistence through partitions of model resolution")
plt.xlabel("Partition")
plt.ylabel("Number of TFs")
plt.ylabel("Number of TFs (log_10)")
plt.show()
#print(TFs.keys())
......
This diff is collapsed. Click to expand it.