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(); }
private void addRoots() { treeViewGO2.CollapseAll(); treeViewGO2.Nodes.Clear(); frontLine.Clear(); List <string> rootNames = gt.findTopMostNodes(); foreach (TreeNode tn in treeNodes) { if (rootNames.Contains(tn.Name)) { if (!treeViewGO2.Nodes.Contains(tn)) { treeViewGO2.Nodes.Add(cleanNode(tn)); frontLine.Add(tn.FullPath); } } } }