Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Guangchuang Yu committed Jun 8, 2022
1 parent a899702 commit 838c767
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: DOSE
Type: Package
Title: Disease Ontology Semantic and Enrichment analysis
Version: 3.23.1
Version: 3.23.2
Authors@R: c( person(given = "Guangchuang", family = "Yu", email = "[email protected]", role = c("aut", "cre")),
person(given = "Li-Gen", family = "Wang", email = "[email protected]", role = "ctb"),
person(given = "Vladislav", family = "Petyuk", email = "[email protected]", role = "ctb"),
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# DOSE 3.23.2

+ Support `GSON` object in `GSEA_internal()` (2022-06-08, Wed)

# DOSE 3.23.1

+ Support `GSON` object in `enricher_internal()` (2022-06-06, Mon)
Expand Down
10 changes: 9 additions & 1 deletion R/utilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,15 @@ is.sorted <- function(x, decreasing=TRUE) {
}

getGeneSet <- function(USER_DATA) {
get("PATHID2EXTID", envir = USER_DATA)
if (inherits(USER_DATA, "environment")) {
res <- get("PATHID2EXTID", envir = USER_DATA)
} else if (inherits(USER_DATA, "GSON")) {
gsid2gene <- USER_DATA@gsid2gene
res <- split(gsid2gene$gene, gsid2gene$gsid)
} else {
stop("not supported")
}
return(res)
}


Expand Down

0 comments on commit 838c767

Please sign in to comment.