GMT | R Documentation |
Functions to read and write Gene Matrix Transposed (GMT) files and to test if an object inherits from GMT.
read.GMT(filename)
write.GMT(gmt, filename)
is.GMT(x)
filename |
Location of the gmt file. |
gmt |
A GMT object. |
x |
The object to test. |
A GMT object is a named list of terms, where each term is a list with the items:
The term ID.
The full name or description of the term.
A character vector of genes annotated to this term.
A GMT file describes gene sets, such as biological terms and pathways. GMT files are tab delimited text files. Each row of a GMT file contains a single term with its database ID and a term name, followed by all the genes annotated to the term.
read.GMT
returns a GMT object.
write.GMT
returns NULL.
is.GMT
returns TRUE if x
is a GMT object, else FALSE.
fname_GMT <- system.file("extdata", "hsapiens_REAC_subset.gmt", package = "ActivePathways")
gmt <- read.GMT(fname_GMT)
gmt[1:10]
gmt[[1]]
gmt[[1]]$id
gmt[[1]]$genes
gmt[[1]]$name
gmt$`REAC:1630316`
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.