PhanstielLab / plotgardener

https://phanstiellab.github.io/plotgardener/
Other
299 stars 28 forks source link

Support for labeling multiple genes that are close together #96

Open sup27606 opened 1 year ago

sup27606 commented 1 year ago

Thank you for the continuing work on a very useful software in this field.

I was wondering if it's possible to annotate multiple genes that form a cluster, e.g. they are located so close by that regular plotGene() function cannot label all of them without overlapping. One possibility is to use bifurcated lines emanating from each gene and ending in a label. Softwares like circlize use this kind of approach. Here is an example of what I mean:

image

I tried to manually add the annotations in this plot created from Plotgardener.

image

We frequently encounter scenarios where we need to label a cluster of genes while showing genome-wide features such as HiC, so this enhancement would be helpful.

nekramer commented 1 year ago

Thank you for this fantastic suggestion! This is currently not possible, but I also think it will be a useful feature for those focused on clusters of genes at a larger genomic scale. I will keep this issue open as an enhancement so we can maybe implement this in a future release!

Best, Nicole