Closed michaelofrancis closed 1 year ago
Hi,
thanks for the very detailed discription. I fixed these issues and please update to pip install gwaslab==3.4.1
ystep
to change it.xpad
to change the padding before the first chr and after the last chrsc_linewidth
to change the thickness of cut line and significance line.use_rank
to remove all gaps. (By default, the physical basepair positions are used. So the gaps basicially mean there are no SNPs in those regions. You can usually see those gaps in the middle of chr9 , and acrocentric chromosomes like chr13,14,15,21,22.) If you set use_rank=True
, gwaslab will simply use the rank instead of physical positions.Example:
mysumstats.plot_mqq(mode="m", skip=2, cut=50)
and you can try the folowing parameters
mysumstats.plot_mqq(mode="m", skip=2, cut=50,ystep=5,use_rank=True,sc_linewidth=1,xpad=0.01,marker_size=(10,10),fontsize=8)
This is great, thank you. I have a couple more items and then I will be all set. The first one is the most important, the others I can fix in Illustrator if necessary.
Thanks!
Hi,
Thanks again for your very deailed comments.
I just fixed those issues. Please update to pip install gwaslab==3.4.2
.
You can now use ylabels
to set the y ticklabels and font_family
to set the font family.
"Chromosomes" was changed to "Chromosome".
Hope this is what you expected for the figure.
mysumstats.plot_mqq(mode="m",
skip=2,
cut=50,
ylabels=[5,10,20,30,40,50,100,168],
use_rank=True,
sc_linewidth=1,
xpad=0.01,
marker_size=(10,10),
fontsize=10,
font_family="Arial")
Hi, thanks again for your response. I think we are almost there...
I was thinking the expected behavior from "cut" was to change to logarithmic scale (technically, the log of the log scale since it is already a log scale of the original P values) , i.e. like this, where the y-axis doubles and each doubling remains the same distance apart.
Unfortunately the current behavior is to "re-set" the axis but not change to log scale.
Could you possibly implement the switch to log scale? I think this option would make this plotting tool very valuable. This is the last thing I will ask, I promise :)
Hi, You can now add "cut_log=True" to change the y axis above "cut" to log scale, and add "jagged=True" to make a jagged y axis if needed. Please update to "pip install gwaslab==3.4.3".
mysumstats.plot_mqq(mode="m",skip=3,
cut=50,
cut_log=True,
ylabels=[10,20,30,40,50,100,200,400],
fontsize = 8)
Incredible. Amazing. Thank you!!
Hi, thank you for this package. There are a few more issues I would like to see fixed before using this package in a manuscript. Maybe there are already ways to fix these with parameters?
Thanks!