parse_gmx: Read a GMX file and return a list

Description Usage Arguments Details Value See Also Examples

View source: R/io.R

Description

Read a GMX file and return a list

Usage

1
2
3

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

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

cmapR documentation built on Dec. 12, 2020, 2 a.m.