Learn R Programming

mdgsa (version 1.4.2)

annotList2mat: 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.

Value

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

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.

See Also

annotMat2list, revList, split

Examples

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

Run the code above in your browser using DataLab