Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/devel' into devel
Browse files Browse the repository at this point in the history
pull upstream changes
  • Loading branch information
lgeistlinger committed Sep 12, 2023
2 parents 5305722 + 4a91558 commit fd22fbc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions R/getSignatures.R
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ extractTaxLevel <- function(sig,
#' @param sigs A list of microbe signatures (character vectors of taxonomic
#' IDs).
#' @param gmt.file character. Path to output file in GMT format.
#' @param ... Arguments passed on to cat()
#' @return none, writes to file.
#' @references
#' GMT file format:
Expand All @@ -320,7 +321,7 @@ extractTaxLevel <- function(sig,
#' writeGMT(sigs, gmt.file = "signatures.gmt")
#' file.remove("signatures.gmt")
#' @export
writeGMT <- function(sigs, gmt.file) {
writeGMT <- function(sigs, gmt.file, ...) {
# collapse set members to one tab separated string
gs.strings <- vapply(sigs,
function(x) paste(x, collapse = "\t"),
Expand All @@ -337,7 +338,7 @@ writeGMT <- function(sigs, gmt.file) {
all.str <- paste(all, "\n", sep = "")

# write in gmt format
cat(all.str, file = gmt.file, sep = "")
cat(all.str, file = gmt.file, sep = "", ...)
}

.extractSigs <- function(sigdf, tax.id.type, tax.level, exact.tax.level)
Expand Down
4 changes: 3 additions & 1 deletion man/writeGMT.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fd22fbc

Please sign in to comment.