Skip to content

Commit

Permalink
fix Fix gsea enplot for composite feature (proteins) ID
Browse files Browse the repository at this point in the history
  • Loading branch information
zitoa committed Jan 8, 2025
1 parent 53fa970 commit 2fc822c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions components/board.enrichment/R/enrichment_plot_compare.R
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ enrichment_plot_compare_server <- function(id,

gs1 <- playbase::breakstring(gset, 28, 50, force = FALSE)
cmp <- paste0(gset, "\n@", cmp)

names(rnk0) <- unlist(lapply(names(rnk0), function(x) {
x0 = strsplit(x, "_")[[1]]
return(x0[length(x0)])
}))

playbase::gsea.enplot(
rnk0,
Expand Down Expand Up @@ -109,6 +114,11 @@ enrichment_plot_compare_server <- function(id,
gs1 <- playbase::breakstring(gset, 28, 50, force = FALSE)
cmp <- paste0(gset, "\n@", cmp)

names(rnk0) <- unlist(lapply(names(rnk0), function(x) {
x0 = strsplit(x, "_")[[1]]
return(x0[length(x0)])
}))

playbase::gsea.enplot(
rnk0,
genes,
Expand Down

0 comments on commit 2fc822c

Please sign in to comment.