Description Usage Arguments See Also Examples
Convert a list to a GmtList object
1 |
list |
A list of genesets; each geneset is a list of at least three fields: 'name', 'desc', and 'genes'. 'name' and 'desc' contains one character string ('desc' can be NULL while 'name' cannot), and 'genes' can be either NULL or a character vector. In addition, 'namespace' is accepted to represent the namespace. For convenience, the function also accepts a list of character vectors, each containing a geneset. In this case, the function works as a wrapper of |
If a list of gene symbols need to be converted into a GmtList, use 'as.GmtList' instead
1 2 3 4 5 6 7 8 | testList <- list(list(name="GS_A", desc=NULL, genes=LETTERS[1:3]),
list(name="GS_B", desc="gene set B", genes=LETTERS[1:5]),
list(name="GS_C", desc="gene set C", genes=NULL))
testGmt <- GmtList(testList)
# as wrapper of as.GmtList
testGeneList <- list(GS_A=LETTERS[1:3], GS_B=LETTERS[1:5], GS_C=NULL)
testGeneGmt <- GmtList(testGeneList)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.