Writes a set of pathways (list of vectors) to a GMT file.

writePathways(pathways, gmtFile)

Arguments

pathways

(list) named list of vectors

gmtFile

(char) name of output GMT file

Value

GMT-formatted file. Rows represent pathways. Columns represent:

  • pathway ID;

  • description;

  • a list of tab-delimited genes

Examples

data(pathwaysXLSX) writePathways(pathwaysXLSX, tempfile("pathwaysXLSX", fileext = ".gmt"))
#> Wrote out pathway gmt file to /var/folders/mh/_0z2r5zj3k75yhtgm6l7xy3m0000gn/T//RtmpaRu10f/pathwaysXLSX84bf50485fdd.gmt