minimizeSelection {goCluster} | R Documentation |
Given a tree that holds significant annotation terms for a number of clusters, the function will reduce the selection of annotation terms in each node to the one with minimal p-value.
minimizeSelection(X, annotations)
X |
The tree of selected, significant annotations terms. |
annotations |
The number of annotations present in the tree. |
The tree, reduced to the annotation terms with minimal p-value.
Gunnar Wrobel, work@gunnarwrobel.de, http://www.gunnarwrobel.de.
namedv1 <- c(0.01,0.1) names(namedv1) <- c("GeneA", "GeneB") namedv2 <- c(0.01,0.01) names(namedv2) <- c("GeneB", "GeneC") namedv3 <- c(0.5,0.1) names(namedv3) <- c("GeneD", "GeneE") a <- list(annotationA = namedv1, annotationB = namedv2, annotationC = namedv3) b <- list(list(a,a),list(a,a)) minimizeSelection(a,3) minimizeSelection(b,3)