-
Notifications
You must be signed in to change notification settings - Fork 149
netAnalysis_signalingRole_heatmap : Heatmap/annotation names are duplicated: Relative strength #170
Comments
Hi! Not the creator, but I think I can help. Have you tried not using draw and just typing out + in? @sqjin this is likely coming from lines 2382-2391 in the analysis.R documentation. I think its some sort of clashing with the draw function where it attempts to call a certain slot for annotation but you've already generated the heatmaps before hand so it merges the values. The associated warning message is coming from the complexheatmap package. You can see it here: https://github.com/jokergoo/ComplexHeatmap/blob/master/R/HeatmapAnnotation-class.R at lines 957. Here's the snippet of code:
My guess is your use of draw recalls the HeatmapAnnotation from that package and it throws this bug. |
@jv-20 The row annotation issue is fixed now! The row bar height are the sum of outgoing signaling strength (i.e., communication probabilities) across all cell groups for a pathway. In the outgoing pattern/heatmap, the relative strength (i.e., the color in the heatmap) is the normalized communication probability sending from one cell group via one pathway. We normalize each row so that the maximum value is 1, which produces the so-called relative strength. You can simply ignore the warning when combing two figures. |
@cswoboda Thanks for the help. |
Thanks for the replies. The issue is not resolved for me. I re-installed the package and the rowbars for the two heatmaps are still the same. I tried using Thanks |
Hi @jv-20, sorry that didn't help out! Two things I'd check if I were in your situation to make diagnosing the problem easier, and @sqjin is the expert here so feel free to just wait for their advice. Note, the warning message is as @sqjin was saying probably unrelated to your error so ignore that.
This just lets me know where in the function documentation to look at potential faulty transformations of the data before plotting, or if this is happening directly at the plotting level. Also @sqjin, just wanted to let you know that in your commit you make the value pSum redundant with your fix. Not sure what checks it was performing, but you can see here it's not called now that you've changed it. May want to revert if it's not solving the issue:
|
@cswoboda Thanks! You are right. I restore the code now. |
@jv-20 The warning message is fixed now. After careful thinking, the two row annotation bars should be the same. For one pathway, the total outgoing signaling strength across all cell groups should be the same as the total incoming signaling strength. |
Hi @sqjin and @cswoboda ,thanks a lot for your insights and help. @cswoboda
@sqjin Thanks again for your kind help and replies. Much appreciated |
Hi @sqjin, Just another question. Is there a function to cluster a list of pathways of interest based on network centrality measures (outdegree,indegree,meadiators and influencers)? When I try to use the cluser.rows=T parameter with
Would you have some insights? Thank you |
@jv-20 There is no function available in CellChat. But you can extract the data and use the |
Thanks @sqjin |
Hi, thanks for your explanation, I am wondering if you can further explain the pSum here, does it reflect the sum of all signals for one pathway, in my practice, I got ~1500 for the max pSum number for one condition, while other condition is about 80, I cannot figure out the calculation here. Thanks for your help, much appreciated. |
Hi @sqjin
A quick question. When drawing two heatmaps together based netAnalysis_signalingRole_heatmap function, the relative strength bar - row annotation is the same for two heatmaps.
I run the following code
and receive the following error message
Example shown below
The definition of relative strength here is the row sum of outdegree or indegree connections for a pathway is it?
Could you please advise?
Thanks
The text was updated successfully, but these errors were encountered: