Cloufield / gwaslab

A Python package for handling and visualizing GWAS summary statistics. https://cloufield.github.io/gwaslab/
GNU General Public License v3.0
118 stars 22 forks source link

Issue on QQ plot visualization alone #90

Closed Youpu-Chen closed 2 months ago

Youpu-Chen commented 2 months ago

Hi there.

Thank you for developing this great tool! I've encountered a problem when trying to visualize the QQ plot alone. It report:

AttributeError: 'NoneType' object has no attribute 'get_xlim'

All the pkgs I imported were:

import gwaslab as gl
import matplotlib.pyplot as plt

from matplotlib import rcParams
rcParams["font.family"] = "Arial" 

The code snippet to plot:

mysumstats.plot_mqq(mode="qq", 
                    # fig_args = {"figsize":(6,6)}, 
                    check=False, 
                    verbose=False)

The file format is PLINK 2.0.

I'll really appreciate it if you could give me a hint.

Cloufield commented 2 months ago

Hi Youpu, Sorry for the bug. Actually, I have already fixed it in this commit. Please try using the latest version ( pip install gwaslab==3.4.43 ). Thanks!

Youpu-Chen commented 2 months ago

The problem was solved, Thank you!