parse.gmx {cmapR} | R Documentation

## Read a GMX file and return a list

### Description

Read a GMX file and return a list

### Usage

    parse.gmx(...)

    parse_gmx(fname)

### Arguments

`...` | arguments passed on to `parse_gmx`
`fname` | the file path to be parsed

### Details

`parse_gmx` returns a nested list object. The top level contains one list per column in `fname`. Each of these is itself a list with the following fields: - `head`: the name of the data (column in `fname`) - `desc`: description of the corresponding data - `len`: the number of data items - `entry`: a vector of the data items

### Value

a list of the contents of `fname`. See details.

### See Also

Visit http://clue.io/help for details on the GMX file format

Other CMap parsing functions: `lxb2mat()`, `parse.gmt()`, `parse.grp()`, `write_gmt()`, `write_grp()`

### Examples

    gmx_path <- system.file("extdata", "lm_probes.gmx", package="cmapR")
    gmx <- parse_gmx(gmx_path)
    str(gmx)

[Package cmapR version 1.2.1 Index]