Ok likelihood swp2
parent
2253ce5f67
commit
23fef174f2
2
swp2.py
2
swp2.py
|
|
@ -288,7 +288,6 @@ def plot_all_epochs_thetafolder(folder_path, mu, tgen, title = "Title", theta_sc
|
||||||
plt.title(title)
|
plt.title(title)
|
||||||
plt.savefig(title+'_b'+str(breaks)+'.pdf')
|
plt.savefig(title+'_b'+str(breaks)+'.pdf')
|
||||||
# plot likelihood against nb of breakpoints
|
# plot likelihood against nb of breakpoints
|
||||||
|
|
||||||
# best possible likelihood from SFS
|
# best possible likelihood from SFS
|
||||||
# Segregating sites
|
# Segregating sites
|
||||||
S = sum(SFS_stored)
|
S = sum(SFS_stored)
|
||||||
|
|
@ -396,7 +395,6 @@ def plot_test_theta(folder_path, mu, tgen, title = "Title", theta_scale = True,
|
||||||
plt.ylabel("theta")
|
plt.ylabel("theta")
|
||||||
plt.legend(loc='upper right')
|
plt.legend(loc='upper right')
|
||||||
plt.savefig(title+'_test'+str(k)+'.pdf')
|
plt.savefig(title+'_test'+str(k)+'.pdf')
|
||||||
|
|
||||||
# Plotting (fig 3) which is the same but log scale for x
|
# Plotting (fig 3) which is the same but log scale for x
|
||||||
plt.plot(x_2, y, 'o', linestyle="dotted", alpha=0.75, lw=2, label = str(epoch)+' brks')
|
plt.plot(x_2, y, 'o', linestyle="dotted", alpha=0.75, lw=2, label = str(epoch)+' brks')
|
||||||
plt.xscale('log')
|
plt.xscale('log')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue