Skip to content

Commit

Permalink
Merge pull request #17 from YuLab-SMU/master
Browse files Browse the repository at this point in the history
merge
  • Loading branch information
huerqiang committed Nov 20, 2022
2 parents c02c6d9 + 5bf60f8 commit 7e5674a
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 8 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.3
Version: 3.25.0.001
Authors@R: c( person(given = "Guangchuang", family = "Yu", email = "guangchuangyu@gmail.com", role = c("aut", "cre")),
person(given = "Li-Gen", family = "Wang", email = "reeganwang020@gmail.com", role = "ctb"),
person(given = "Vladislav", family = "Petyuk", email = "petyuk@gmail.com", role = "ctb"),
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PKGNAME := $(shell sed -n "s/Package: *\([^ ]*\)/\1/p" DESCRIPTION)
PKGVERS := $(shell sed -n "s/Version: *\([^ ]*\)/\1/p" DESCRIPTION)
PKGSRC := $(shell basename `pwd`)
BIOCVER := RELEASE_3_15
BIOCVER := RELEASE_3_16

all: rd check clean

Expand Down
8 changes: 8 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# DOSE 3.25.0.001

+ test whether slot in `GSON` object is NULL (e.g., `GSON@keytype`) when assigning it to enrichment result (2022-11-07, Mon)

# DOSE 3.24.0

+ Bioconductor RELEASE_3_16 (2022-11-02, Wed)

# DOSE 3.23.3

+ replace `DO.db` to `HDO.db` (2022-10-7, Fri)
Expand Down
12 changes: 9 additions & 3 deletions R/enricher_internal.R
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,15 @@ enricher_internal <- function(gene,
readable = FALSE
)
if (inherits(USER_DATA, "GSON")) {
x@keytype <- USER_DATA@keytype
x@organism <- USER_DATA@species
x@ontology <- gsub(".*;", "", USER_DATA@gsname)
if (!is.null(USER_DATA@keytype)) {
x@keytype <- USER_DATA@keytype
}
if (!is.null(USER_DATA@species)) {
x@organism <- USER_DATA@species
}
if (!is.null(USER_DATA@gsname)) {
x@ontology <- gsub(".*;", "", USER_DATA@gsname)
}
}
return (x)
}
Expand Down
12 changes: 9 additions & 3 deletions R/gsea.R
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,15 @@ GSEA_internal <- function(geneList,
res@setType <- "UNKNOWN"
res@keytype <- "UNKNOWN"
if (inherits(USER_DATA, "GSON")) {
res@keytype <- USER_DATA@keytype
res@organism <- USER_DATA@species
res@setType <- gsub(".*;", "", USER_DATA@gsname)
if (!is.null(USER_DATA@keytype)) {
res@keytype <- USER_DATA@keytype
}
if (!is.null(USER_DATA@species)) {
res@organism <- USER_DATA@species
}
if (!is.null(USER_DATA@gsname)) {
res@setType <- gsub(".*;", "", USER_DATA@gsname)
}
}
return(res)
}
Expand Down

0 comments on commit 7e5674a

Please sign in to comment.