-
Notifications
You must be signed in to change notification settings - Fork 255
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
How to color code cnetplot nodes from enrichrResult data #667
Comments
Your code in the 2nd code box, starting from the line Yet, this thread may (still) be useful? https://support.bioconductor.org/p/p133748/ |
Thank you for your reply and for your help. It is taking from multienrichjam. Sorry I should've also mentioned previously that maybe 1-2 years ago I was able to create a cnetplot with color scaling working as I needed for this type of data (I think I used that bioconductor link you sent to set it up with using Ultimately I just want to color code my genes by their PoPs scores (in my Here is my full code with example data:
|
So if I understand you correctly, you would like to visualize the network of the top 5 most significant gene sets in a I would do it like below; note that you can change the default colors using Moreover, since the output is a Also note that the object
Outputs:
|
This is exactly what I needed, thank you very much for taking the time to look into this! This has completely resolved my issue. |
Thank you for developing this package, it is very useful.
I am trying to plot a cnetplot with a color scale relating to my foldchange values.
Running the example code works as expected:
However, my version of x is not a list but an enrichResult. When I try to run that, the code gets an error:
I have also tried:
These run but do not color code the nodes.
The text was updated successfully, but these errors were encountered: