mergeResult {goCluster} | R Documentation

## Merges two lists of selected genes to the selection with minimal p-value

### Description

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.

### Usage

    mergeResult(result, mergedResult, annotations)

### Arguments

`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.

### Value

The merged list.

### Author(s)

Gunnar Wrobel, work@gunnarwrobel.de, http://www.gunnarwrobel.de.

### See Also

`clusterVisualHclust-class`

### Examples

    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)

[Package goCluster version 1.4.0 Index]