Skip to content

Commit

Permalink
Clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
igordot committed Feb 24, 2025
1 parent dbd5781 commit 586d906
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/msigdbr.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ msigdbr <- function(species = "Homo sapiens", db_species = "HS", collection = NU
subcollection <- subcategory
}

# Get the gene sets table or use an internal Hallmark dataset without msigdbdf
# Get the gene sets table from msigdbdf or use an internal test dataset
if (requireNamespace("msigdbdf", quietly = TRUE)) {
# Get the gene sets table
# Get the full gene sets data frame (filter later if needed)
mdb <- msigdbdf::msigdbdf(target_species = db_species)
} else {
if (species == "Homo sapiens" && db_species == "HS") {
if (db_species == "HS") {
# Use an internal dataset for minimal functionality without msigdbdf
mdb <- testdb
message("The 'msigdbdf' package must be installed to access the full dataset.")
Expand Down

0 comments on commit 586d906

Please sign in to comment.