Learn R Programming

GSNA (version 0.1.4.2)

gsc2tmod: gsc2tmod

Description

Function to convert a GSC in the form of a named list of vectors containing gene symbols to a object of class tmod which was used by the tmod prior to version 0.50.11. This is a wrapper for makeTmod() from the tmod package.

Usage

gsc2tmod(MODULES2GENES, MODULES = NULL, GENES = NULL)

Value

Returns a tmod object if the tmod package version '0.46.2' or earlier is installed. If the tmod package version '0.50.11' or later is installed, it returns a tmodGS object instead.

Arguments

MODULES2GENES

A named list of character vectors in which the vectors correspond to gene sets and contain gene symbols (or other gene identifiers) and the names are the corresponding gene set identifiers.

MODULES

(optional) A data.frame containing an ID and a Title field in the same order as the gene sets in MODULES2GENES. Furthermore, the row names should (apparently) correspond to the IDs in the corresponding rows. If not provided, this will be generated automatically.

GENES

(optional) A data frame with gene metadata. Must contain an ID column. If not provided, this will be generated automatically.

See Also

read_gmt() tmod2gsc()