writeGMT: aveytoolkit_writeGMT.R

Description Usage Arguments Details Author(s)

View source: R/aveytoolkit_writeGMT.R

Description

Write out a GMT (Gene Matrix Transposed) file.

Usage

1
2
3
4
5
6
writeGMT(
  filename,
  sets,
  setNames = names(sets),
  setDescriptions = rep(NA, length(sets))
)

Arguments

filename

the file to write to (should include '.gmt' extension

sets

a list of character vectors containing the sets to write

setNames

a character vector of set names corresponding to sets. Defaults to 1, 2, 3, ..., length(sets) if nonte specified.

setDescriptions

a character vector of set descriptions corresponding to sets. Defaults to NA values if none specified.

Details

Take in a vector of set names, descriptions, and gene identifiers and write them to a GMT file format. http://www.broadinstitute.org/cancer/software/gsea/wiki/index.php/Data_formats#GMT:_Gene_Matrix_Transposed_file_format_.28.2A.gmt.29

Author(s)

Stefan Avey


stefanavey/aveytoolkit documentation built on March 5, 2020, 12:49 a.m.