Reformat, read & write .gmt file.
reformat_gmt(gmtfile, outputfile, replace = FALSE)
read_gmt(gmtfile)
write_gmt(gmt, outputfile, replace = FALSE)
path to a gene set definition file in .gmt format.
full path including file name to export reformatted .gmt file.
a logical value indicating whether to replace the output file if it already exists. Default to FALSE.
a gmt object returned by read_gmt
.
for read_gmt, returns a list object with length equal to the total number of gene sets within the .gmt file. Each list contains three elements:
"id", "name", "genes". read_gmt & write_gmt are reimplemented based on functions from ActivePathways
package.
reformat_gmt
replaces blank spaces within the gene-set names to help string-matching methods in downstream plot functions gsea_sumplot
,gsea_rwplot
, gsea_heatmap
.