Skip to content

Commit

Permalink
add a SingleCellExperiment method for gsvaAssayNames()
Browse files Browse the repository at this point in the history
  • Loading branch information
axelklenk committed Apr 11, 2024
1 parent d8f7964 commit 3ff456d
Show file tree
Hide file tree
Showing 2 changed files with 7 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.50.2
Version: 1.50.3
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
6 changes: 6 additions & 0 deletions R/GsvaMethodParam.R
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,9 @@ setMethod("gsvaAssayNames", signature("SummarizedExperiment"),
a <- assayNames(object)
return(if(.isCharNonEmpty(a)) a else NA_character_)
})

setMethod("gsvaAssayNames", signature("SingleCellExperiment"),
function(object) {
a <- assayNames(object)
return(if(.isCharNonEmpty(a)) a else NA_character_)
})

0 comments on commit 3ff456d

Please sign in to comment.