annotMat2list {mdgsa}R Documentation

Convert an annotation matrix into an annotation list.

Description

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

Usage

annotMat2list(mat)

Arguments

mat

annotation matrix; gene IDs in the first column; block IDs in the second column.

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 list: elements of the list are vectors of genes; names of the list are Gene Set ids.

Author(s)

David Montaner dmontaner@cipf.es

See Also

annotList2mat, revList, split

Examples

mat <- cbind (c("gen1", "gen2", "gen3"), c("Block1", "Block1", "Block2"))
annotMat2list (mat)

[Package mdgsa version 1.20.0 Index]