ReadGMT {MAGeCKFlute} | R Documentation

## ReadGMT

### Description

Parse gmt file to a data.frame

write data frame to a gmt file

### Usage

    ReadGMT(gmtpath, limit = c(0, Inf))

    writeGMT(gene2path, gmtfile)

### Arguments

`gmtpath` | The path to gmt file.
`limit` | A integer vector of length two, specifying the limit of geneset size.
`gene2path` | A data frame. The columns should be Gene, Pathway ID, and Pathway Name.
`gmtfile` | Path to gmt file.

### Value

An data.frame, in which the first column is gene, and the second column is pathway name.

Output gmt file to local folder.

### Author(s)

Wubing Zhang

Wubing Zhang

### Examples

    gene2path = gsGetter(type = "Complex")
    writeGMT(gene2path, "Protein_complex.gmt")

[Package MAGeCKFlute version 1.7.2 Index]