private void RunAllClick(object sender, EventArgs e) { foreach (Tab tab in AlignmentTabs.Controls) { var proteins = tab.Proteins; var mi = new MI(proteins, tab.BaseColumns); var MIZscores = mi.GetZscores(); WriteToFile(MIZscores, String.Concat(tab.Label + "_", "MI"), false); var mis = MIZscores; var MIp = new MIp(mis); var MIpZscores = MIp.GetMIps(); WriteToFile(MIpZscores, String.Concat(tab.Label + "_", "MIp"), false); var di = new DI(proteins); var diZscores = di.getDI(); WriteToFile(diZscores, String.Concat(tab.Label + "_", "DI"), false); var arr = proteins.ToCharArrayRestricted(tab.BaseColumns); var psicovZscores = new Psicov(arr).GetPsicov(); if (psicovZscores == null) { continue; } WriteToFile(psicovZscores, String.Concat(tab.Label + "_", "Psicov"), false); } }
private void PsicovClick(object sender, EventArgs e) { var tab = ((Tab)AlignmentTabs.SelectedTab); var arr = proteins.ToCharArrayRestricted(tab.BaseColumns); var zscores = new Psicov(arr).GetPsicov(); show3DPlot(zscores); WriteToFile(zscores, String.Concat(tab.Label + "_", "Psicov")); }