writeGMT: Write microbe signatures to file in GMT format

View source: R/getSignatures.R

writeGMTR Documentation

Write microbe signatures to file in GMT format

Description

Functionality for writing microbe signatures to file in GMT format.

Usage

writeGMT(sigs, gmt.file, ...)

Arguments

sigs

A list of microbe signatures (character vectors of taxonomic IDs).

gmt.file

character. Path to output file in GMT format.

...

Arguments passed on to cat()

Value

none, writes to file.

References

GMT file format: http://www.broadinstitute.org/cancer/software/gsea/wiki/index.php/Data_formats

Examples

bsdb <- importBugSigDB()
sigs <- getSignatures(bsdb)
writeGMT(sigs, gmt.file = "signatures.gmt")
file.remove("signatures.gmt") 

waldronlab/bugsigdbr documentation built on Oct. 31, 2024, 3:43 a.m.