Skip to content

Commit

Permalink
a safe way to extract gene sets in ridgeplot(), #303
Browse files Browse the repository at this point in the history
  • Loading branch information
GuangchuangYu committed Dec 12, 2024
1 parent 2898ac3 commit e636259
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: enrichplot
Title: Visualization of Functional Enrichment Result
Version: 1.27.2
Version: 1.27.2.001
Authors@R: c(
person(given = "Guangchuang", family = "Yu", email = "[email protected]", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-6485-8781")),
person(given = "Chun-Hui", family = "Gao", email = "[email protected]", role = "ctb", comment = c(ORCID = "0000-0002-1445-7939")))
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# enrichplot 1.27.2.001

+ a safe way to extract gene sets in `ridgeplot()` (2024-12-12, Thu)

# enrichplot 1.27.2

+ `emapplot()` now allows passing color to a specific color, e.g., color = "black" (2024-11-29, Fri, #300)
Expand Down
2 changes: 1 addition & 1 deletion R/ridgeplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ ridgeplot.gseaResult <- function(x, showCategory=30, fill="p.adjust",
if (core_enrichment) {
gs2id <- geneInCategory(x)[selected]
} else {
gs2id <- x@geneSets[x$ID %in% selected]
gs2id <- x@geneSets[names(x@geneSets) %in% selected]
}

if (x@readable && length(x@gene2Symbol) > 0) {
Expand Down

0 comments on commit e636259

Please sign in to comment.