Skip to content

Commit

Permalink
run_gsva: in recent GSVA first arg must be named param
Browse files Browse the repository at this point in the history
  • Loading branch information
deeenes committed Mar 28, 2024
1 parent 68bf5f6 commit 0006a80
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions R/statistic-gsva.R
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,15 @@ run_gsva <- function(mat,
regulons <- extract_sets(network)

# Analysis ----------------------------------------------------------------
GSVA::gsva(
expr = exec(
param,
exprData = mat,
geneSets = regulons,
minSize = minsize,
maxSize = maxsize,
!!!list(...)
),
verbose = verbose
param %>%
exec(
exprData = mat,
geneSets = regulons,
minSize = minsize,
maxSize = maxsize,
!!!list(...)
) %>%
GSVA::gsva(param = ., verbose = verbose) %>%
as.data.frame() %>%
rownames_to_column(var = "source") %>%
pivot_longer(
Expand Down

0 comments on commit 0006a80

Please sign in to comment.