annotMat2list: Convert an annotation matrix into an annotation list.

Description Usage Arguments Details Value Author(s) See Also Examples

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

1

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

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

dmontaner/mdgsa documentation built on May 15, 2019, 9:35 a.m.