precimed / mixer

Causal Mixture Model for GWAS summary statistics
GNU General Public License v3.0
59 stars 17 forks source link

power plot is blank and throws a warning #91

Open bardmaker opened 7 months ago

bardmaker commented 7 months ago

python /media/drive12TB1/projects/software/mixer/mixer/precimed/mixer_figures.py \ one \ --json results_mixer/EUR_ancestry_subjects_results_maf_0.01_univariate_mixer_qc_noMHC.fit.json \ --out images/EUR_ancestry_subjects_results_maf_0.01_univariate_mixer_qc_noMHC.fit \ --statistic mean std

The power plot is blank and throws a warning.

The *power.csv file has results that look valid.

This error has something to do with matplotlib

precimed/mixer/figures.py:339: UserWarning: FixedFormatter should only be used together with FixedLocator plt.gca().set_xticklabels(labels=['10K', '100K', '1M', '10M', '100M']) precimed/mixer/figures.py:342: UserWarning: FixedFormatter should only be used together with FixedLocator plt.axes().set_yticklabels(labels=['0', '20', '40', '60', '80', '100'])

I added some code to set the tick positions but they just overlay and leave the old positions in there. EUR_ancestry_subjects_results_maf_0 01_univariate_mixer_qc_noMHC fit power

EPTissink commented 6 months ago

Hi there, I encountered the same issue today. The plotting script throws the same warning and returns a blank plot, although the trait1_trait2_trait3.fit.power.csv data looks perfectly fine. Hope someone has a solution to the issue!