annotList2mat {mdgsa} | R Documentation |
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.
annotList2mat(lis, tag = "listPos")
lis |
annotation list. |
tag |
substitutes missing list names if any. |
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.
An annotation matrix: the first column contains the gene or feature ids, the second column contains the Gene Set or functional block ids.
David Montaner dmontaner@cipf.es
annotMat2list
, revList
, split
lis <- list (Block1 = c("gen1", "gen2"), Block2 = c("gen3")) annotList2mat (lis)