Cloufield / gwaslab

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

Get by chromosome #6

Open Delvalle-beep opened 1 year ago

Delvalle-beep commented 1 year ago

Another problem that I'm not sure how to solve would be how to plot a specific group of chromosomes (for the mqq plot)? I would like to pass a single number or a range of chromosomes to plot Would you help me?

Cloufield commented 1 year ago

Hi, you can filter your sumstats first and then creat the plot, or simply you can try this using the filter_value function.

mysumstats.filter_value('CHR==1').plot_mqq()

mysumstats.filter_value('CHR>1 & CHR<5').plot_mqq()

image