Skip to content

Commit

Permalink
fixing the behavior of the tooltip title, thanks to the suggestion pr…
Browse files Browse the repository at this point in the history
…ovided by @thomas-keller!

Fixes the #61
  • Loading branch information
federicomarini committed Jan 9, 2025
1 parent fe808f5 commit caef3a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/ggs_graph.R
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ ggs_graph <- function(res_enrich,
"<h4>",
sprintf('<a href="http://amigo.geneontology.org/amigo/term/%s" target="_blank">%s</a>', enriched_gsids[nodeIDs_gs], enriched_gsids[nodeIDs_gs]), "</h4><br>",
V(g)$name[nodeIDs_gs], "<br><br>",
paste0(strwrap(enriched_gsdescs[nodeIDs_gs], 50), collapse = "<br>")
sapply(enriched_gsdescs[nodeIDs_gs],
function(x) paste0(strwrap(x, 50), collapse='<br>'))
)
V(g)$title[nodeIDs_genes] <- paste0(
"<h4>", V(g)$name[nodeIDs_genes], "</h4><br>",
Expand Down

0 comments on commit caef3a9

Please sign in to comment.