annotList2mat {mdgsa} | R Documentation

## Convert an annotation list into an annotation matrix.

### Description

Converts an annotation list to an annotation matrix. The annotation matrix should have 2 columns, the first one with the gene ids; the second one with the annotation ids.

### Usage

    annotList2mat(lis, tag = "listPos")

### Arguments

`lis` | annotation list.
`tag` | substitutes missing list names if any.

### Details

Each element of the annotation list represents a functional block; it is a character vector containing the gene ids annotated under the function. The names of the list are the annotation ids.

### Value

An annotation matrix: the first column contains the gene or feature ids, the second column contains the Gene Set or functional block ids.

### Author(s)

David Montaner dmontaner@cipf.es

### See Also

`annotMat2list`, `revList`, `split`

### Examples

    lis <- list (Block1 = c("gen1", "gen2"), Block2 = c("gen3"))
    annotList2mat (lis)

[Package mdgsa version 1.19.0 Index]