annotMat2list {mdgsa} | R Documentation |
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.
annotMat2list(mat)
mat |
annotation matrix; gene IDs in the first column; block IDs in the second column. |
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 list: elements of the list are vectors of genes; names of the list are Gene Set ids.
David Montaner dmontaner@cipf.es
annotList2mat
, revList
, split
mat <- cbind (c("gen1", "gen2", "gen3"), c("Block1", "Block1", "Block2")) annotMat2list (mat)