writeGMT {RITAN} | R Documentation |
Created for future use and simplification of writing .gmt files from the package.
writeGMT(s, file = NA, link = rep("", length(s)))
s |
list of gene sets in current R session. Each entry will become a row in the GMT file. |
file |
file name to write to |
link |
default is "". This is the second column of a GMT file and is usually a hyperlink or note about the origin of the term |
Nothing is returned. A file is written.
# Make an example list() to show the GMT format set <- list( term1=c('gene_name1','gene_name2'), term2=c('gene_name3','gene_name4','gene_name5') ) ## Not run: # Write a GMT file for "set" writeGMT( set, 'my_file.gmt') ## End(Not run)