Skip to content

Commit

Permalink
Improved user messages and fixed namespace issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rcastelo committed Sep 4, 2024
1 parent f6e9f52 commit cf8b541
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: GSVA
Version: 1.53.18
Version: 1.53.19
Title: Gene Set Variation Analysis for Microarray and RNA-Seq Data
Authors@R: c(person("Robert", "Castelo", role=c("aut", "cre"), email="[email protected]"),
person("Justin", "Guinney", role="aut", email="[email protected]"),
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ importFrom(stats,sd)
importFrom(utils,capture.output)
importFrom(utils,head)
importFrom(utils,installed.packages)
importFrom(utils,packageDescription)
importFrom(utils,read.csv)
importFrom(utils,setTxtProgressBar)
importFrom(utils,tail)
Expand Down
5 changes: 5 additions & 0 deletions R/gsva.R
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,12 @@ compute.geneset.es <- function(expr, gset.idx.list, sample.idxs, kcdf,
} else
kernel <- FALSE
}

if (verbose) {
if (sparse)
cli_alert_info("GSVA sparse algorithm")
else
cli_alert_info("GSVA dense (classical) algorithm")
if (kernel) {
if (rnaseq)
cli_alert_info("Row-wise ECDF estimation with Poisson kernels")
Expand Down
4 changes: 4 additions & 0 deletions R/gsvaNewAPI.R
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
NULL

#' @importFrom cli cli_alert_info
#' @importFrom utils packageDescription
#' @aliases gsva,plageParam-method
#' @rdname gsva
#' @exportMethod gsva
Expand Down Expand Up @@ -166,6 +167,7 @@ setMethod("gsva", signature(param="plageParam"),


#' @importFrom cli cli_alert_info
#' @importFrom utils packageDescription
#' @aliases gsva,zscoreParam-method
#' @rdname gsva
#' @exportMethod gsva
Expand Down Expand Up @@ -210,6 +212,7 @@ setMethod("gsva", signature(param="zscoreParam"),
})

#' @importFrom cli cli_alert_info
#' @importFrom utils packageDescription
#' @aliases gsva,ssgseaParam-method
#' @rdname gsva
#' @exportMethod gsva
Expand Down Expand Up @@ -257,6 +260,7 @@ setMethod("gsva", signature(param="ssgseaParam"),

#' @aliases gsva,gsvaParam-method
#' @importFrom cli cli_alert_info cli_alert_success
#' @importFrom utils packageDescription
#' @rdname gsva
#' @exportMethod gsva
setMethod("gsva", signature(param="gsvaParam"),
Expand Down

0 comments on commit cf8b541

Please sign in to comment.