saezlab / decoupler-py

Python package to perform enrichment analysis from omics data.
https://decoupler-py.readthedocs.io/
GNU General Public License v3.0
148 stars 21 forks source link

Warnings about annotations raised when running `dc.plot_targets` #140

Open Fantasque68 opened 3 weeks ago

Fantasque68 commented 3 weeks ago

Describe the bug While running codes as tutorial "pseudobulk functional analysis", the function dc.plot_targets raised dozens of warnings, namely WARNING:matplotlib.text:posx and posy should be finite values, and there isn't any gene symbol annotations on the plot.

To Reproduce All the following steps and parameters are same as the tutorial, except that I used my own data.

  1. progeny = dc.get_progeny(...)
  2. pathway_acts, pathway_pvals = dc.run_mlm(...)
  3. dc.plot_targets(...)

Expected behavior Output dotplots with gene symbol annotations as the tutorial.

System

Additional context N.A.

PauBadiaM commented 2 weeks ago

Hi @Fantasque68,

Huh interesting, I reproduced the same environment and it worked fined in my case. Could it be that you have nans in your gene symbols, or in your t-values/log2FCs?