Cloufield / gwaslab

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

An issue #3

Open JiZhao666 opened 1 year ago

JiZhao666 commented 1 year ago

When plotting the Manhattan plot, chr 23 turned into "X" label. Thus it is not suitable for ploting other species. Would you fix this issue?

Cloufield commented 1 year ago

Hi JiZhao,

I just added an option to change the x tick labels. Please update to v3.3.17 (possibly pip install gwaslab==3.3.17)

When plotting, just pass a dictionary to xtick_chr_dict to specify how to plot the x tick labels. (default is for human)

For example:

mysumstats.plot_mqq(skip=2, xtick_chr_dict={i:i for i in range(24)})

image

JiZhao666 commented 1 year ago

Thanks for your quick response.

snowformatics commented 1 year ago

Very useful, thanks!