Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

descriptions of different GO terms are merged in ggs_graph #61

Open
thomas-keller opened this issue Jan 6, 2025 · 1 comment
Open

Comments

@thomas-keller
Copy link

thomas-keller commented Jan 6, 2025

Thanks for developing this great package.

I'm working on converting some of these functions for use with the msig database, and noticed that in the ggs_graph call, the GO expanded descriptions are merged. You can see this on the user guide (GeneTonic User guide). All the terms have the same (large) description because they've been collapsed together.

line 200 in
ggs_graph
should go from
paste0(strwrap(enriched_gsdescs[nodeIDs_gs], 50), collapse = "<br>")

to something like
sapply(enriched_gsdescs[nodeIDs_gs],function(x) paste0(strwrap(x,50),collapse='<br>'))

If there's interest in the msig stuff, I can work on a pull request later. With the shaker function I made for GSVA, it seems to mostly work for the few functions I've focused on so far (ggs_graph,enrichment_map). Some functions would require some changes, like the assumption of a DEseq results input (I'm using limma right now with gsva).

Let me know if you'd be interested in adding msig functionality, I can do a pull request eventually.

@federicomarini
Copy link
Owner

Hey Thomas,
thanks for the kind words! Very glad you enjoy using it.

You are referring to the content of the tooltips, if I got your point right? (the link in the email pointed to L325, which is very odd - and something else...).

Aaaanyway: great catch, thank you for spotting this AND for providing a fix to that.
This also shows up btw also with shorter GO terms (I initially thought it was only for longer descriptions...).
Basically it was a naif (read, "incorrect but innocent") usage of the almighty paste0 function.

I will commit & push the fix!

As for the other aspect: Sure, if you want to put together a PR, I am happy to review it!
Probably you can have a look at the DEformats package to interconvert among DE results formats?

Federico

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants