mergeResult {goCluster} | R Documentation |
Two selection of genes are merged to one list. Genes that occur in both lists will be mentioned only once in the resulting list. Each gene is associated with an annotation term and a p-value and in case a gene occured twice, the final list will only retain the annotation with the lower p-value.
mergeResult(result, mergedResult, annotations)
result |
The first list to be merged to the second list. |
mergedResult |
The second list to be merged. |
annotations |
The number of annotations in each list. |
The merged list.
Gunnar Wrobel, work@gunnarwrobel.de, http://www.gunnarwrobel.de.
a <- list(annotationA = rbind(c("GeneA",0.1), c("GeneB",0.1)), annotationB = rbind(c("GeneA",0.01), c("GeneB",0.01))) b <- list(annotationA = rbind(c("GeneB",0.01), c("GeneC",0.1)), annotationB = rbind(c("GeneA",0.1), c("GeneB",0.1))) mergeResult(a,b,2)