Exemplo n.º 1
0
        public TermScoreCalculator(ref GOTerms gt, ref ResultParser rp)
        {
            this.gt      = gt;
            resultParser = rp;

            //Find root term for the 3 GO namespaces
            //Molecular function, Celular Component, Biological Process
            List <string> topMostNodesIDs = gt.findTopMostNodes();

            foreach (string s in topMostNodesIDs)
            {
                Term termToAdd = gt.getTermByID(s);
                topMostNodes.Add(termToAdd);
            }

            BuildResultsInPopulationCache();
        }
Exemplo n.º 2
0
        private void buttonVerifyExperimentalData_Click(object sender, EventArgs e)
        {
            if (openFileDialog1.ShowDialog() == DialogResult.Cancel)
            {
                return;
            }

            ResultParser resultParser = new ResultParser();

            resultParser.ParseTrendQuestACFoldOrIndex(openFileDialog1.FileName);

            int           failCounter         = 0;
            int           idsProcessedCounter = 0;
            List <string> failedIDs           = new List <string>();

            foreach (KeyValuePair <string, double> r in resultParser.TheResults)
            {
                try
                {
                    idsProcessedCounter++;
                }
                catch
                {
                    failCounter++;
                    failedIDs.Add(r.Key);
                }
            }

            richTextBoxLog.AppendText("Total IDs processed =" + idsProcessedCounter.ToString() + "\n");
            richTextBoxLog.AppendText("FailCounter = " + failCounter.ToString() + "\n");

            for (int i = 0; i < failedIDs.Count; i++)
            {
                int a = i + 1;
                richTextBoxLog.AppendText(a.ToString() + ": " + failedIDs[i] + "\n");
            }
        }