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

Highlighting significant loci in the trumpet plot? #79

Open RezaJF opened 3 months ago

RezaJF commented 3 months ago

Is there a way to highlight significant loci in the trumpet plot instead of annotating them?

Cloufield commented 3 months ago

Hi, For now there is no option to highlight loci in trumpet plot (because I thought ususally only lead variants will be plotted). I will add highlight options in next version soon.

But there is an alternative way, in current version, you can manually add a column (for example, Loci) in mysumstats.data which indicates which loci the variants are in, and pass the column name to hue="Loci" in plot_trumpet(). Variants will then be colored differently based on Loci column.