示例#1
0
文件: Form1.cs 项目: incorux/ProtCoev
        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);
            }
        }
示例#2
0
文件: Form1.cs 项目: incorux/ProtCoev
        private void MIpClick(object sender, EventArgs e)
        {
            var tab      = ((Tab)AlignmentTabs.SelectedTab);
            var proteins = tab.Proteins;
            var mi       = new MI(proteins, tab.BaseColumns);
            var mis      = mi.GetZscores();
            var MIp      = new MIp(mis);
            var zscores  = MIp.GetMIps();

            show3DPlot(zscores);
            WriteToFile(zscores, String.Concat(tab.Label + "_", "MIp"));
        }