Skip to content

Commit b59ca52

Browse files
committed
Update shiny_modules.R
1 parent 6f74a6a commit b59ca52

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

R/shiny_modules.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ genesets_Server <- function(id, clean = FALSE) {
6767
# Correct argument names for msigdb_download
6868
collection <- metadata$collection %||% metadata$category
6969
subcollection <- metadata$subcollection %||% metadata$subcategory
70+
if (is.character(subcollection) && nchar(subcollection) == 0) {
71+
subcollection <- NULL
72+
}
73+
7074
species <- input$species
7175

7276
# Correct usage

0 commit comments

Comments
 (0)