ModDotPlot icon indicating copy to clipboard operation
ModDotPlot copied to clipboard

Feature request: diagonal lines and coordinates at cursor

Open maickrau opened this issue 10 months ago • 1 comments

Hi,

Thanks for the program, it's working well. I'd like to have two features in the interactive visualization which would help with looking at tandem repeats. First is diagonal lines around the cursor similarly to the currently existing horizontal and vertical lines, and second is showing the x/y coordinates of the cursor along the axis. Here's an example, first a screenshot of how it currently looks:

Image

and then here's a sketch of how the diagonal lines and x/y coordinates would look:

Image

This would especially help with tandem repeats which have multiple copies of a short motif like the top left part of the picture

maickrau avatar Feb 04 '25 12:02 maickrau

Thanks @maickrau !

Unfortunately displaying the x/y coordinates is a bit tricky: Dash only allows one data point to be displayed on-hover, which is currently displaying the identity value. I might be able to hack a solution into the next ModDotPlot update, along with providing an option to rotate the cursor lines by 90 degrees.

Not sure if this will help for your purposes, but clicking on your region of interest will log the interval and identity value which you can save for multiple points.

Image

alexsweeten avatar Feb 04 '25 20:02 alexsweeten