annotList2mat: Convert an annotation list into an annotation matrix.

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

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

1
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

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

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