Closed sakuramodokich closed 7 months ago
Hi, Would you please try again with updated version of gwaslab (v3.4.38) or just save the plot as png? The problem seems to only occur when saving as pdf in old versions of gwaslab.
By the way, you vcf works fine here.
Sometimes it is due to incompatible dpi, adding figargs={"dpi":72}
in .plot_mqq()
might work.
Save the plot to PNG solved the problem. Thank you!
By the way, I have already updated my gwaslab to the latest version and set dpi to 72. But the issue still exists, and the only solution is to save it as png.
It might be related to matplotlib version. I am wondering which version of matplotlib you are using now?
I am using matplotlib 3.8.0 in Python 3.9.17
Thanks! I replicated the error with matplotlib 3.8.2. It seems that the problem occured since matplotlib v3.7. And v3.6 works well. For now, if you want to save as pdf, you can downgrade matplotlib to 3.6.3. I will look into the error soon.
Hi I have an issue while trying to make a regional plot with my own LD vcf file, and the variants seem to have been incorrectly plotted in the bottom-left corner:
mysumstats.plot_mqq(mode="r", build="38", region=(7,156538803,157538803), vcf_path=my_ld_vcf, save="locuszoom_chr7.pdf")
The log:
The LD vcf file was converted from unphased bed file:
plink2 --bfile my_bed_file --recode vcf --out my_vcf_file