Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

getGMT

Import GMT (Gene Matrix Transposed) files


Description

The GMT (Gene Matrix Transposed) file format is a tab delimited file format that describes groups of genes. In this format, each row represents a group. Each group is described by a name, a description, and the genes in it.

Usage

getGMT(con, sep = "\t", ...)

Arguments

con

File name of the GMT file.

sep

GMT file field separator, by default tabs.

...

Other arguments passed to readLines.

Value

A TidySet object.

References

The file format is defined by the Broad Institute here

See Also

Other IO functions: getGAF(), getOBO()

Examples

gmtFile <- system.file(
    package = "BaseSet", "extdata",
    "hallmark.gene.symbol.gmt"
)
gs <- getGMT(gmtFile)
nRelations(gs)
nElements(gs)
nSets(gs)

BaseSet

Working with Sets the Tidy Way

v0.0.16
MIT + file LICENSE
Authors
Lluís Revilla Sancho [aut, cre] (<https://orcid.org/0000-0001-9747-2570>), Zebulun Arendsee [rev], Jennifer Chang [rev]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.