clusterProfiler icon indicating copy to clipboard operation
clusterProfiler copied to clipboard

Cnetplots from compareCluster result won't colour by fold change

Open sarahalshammery opened this issue 5 years ago • 3 comments

I have noticed that cnetplots made with a compareCluster result will not colour the genes even when supplied with a sorted gene vector object as in 3.1 input here

I've tested this using the same data where the cnetplots will not colour if the input is a compareClusterResult but will colour if the input is an enrichResult object.

Would appreciate any help regarding this.

Originally posted by @sarahalshammery in https://github.com/YuLab-SMU/clusterProfiler/issues/301#issuecomment-770584070

sarahalshammery avatar Feb 09 '21 05:02 sarahalshammery

@huerqiang hi can I please bring your attention to this issue with the comparecluster function and the cnetplot output? Many thanks.

sarahalshammery avatar Jun 30 '21 09:06 sarahalshammery

Did you solve this problem? I have the same problem with logFC in compareCluster too. the row names, in this case, would not be unique, I cannot generate an input list. Thank you very much if some one can help!

phancanhtrinh avatar Jul 17 '22 07:07 phancanhtrinh

For compareClusterResult object, a gene may have multiple logFCs, therefore, it is not appropriate to use them to color. So we use colors to represent the source clusters of genes.

huerqiang avatar Jul 18 '22 08:07 huerqiang