Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync CN axis of pan-genome view tracks #31

Open
shihabdider opened this issue Jan 27, 2025 · 0 comments
Open

Sync CN axis of pan-genome view tracks #31

shihabdider opened this issue Jan 27, 2025 · 0 comments
Assignees
Labels
high priority / sprint high priority items or aligned with week's sprint

Comments

@shihabdider
Copy link
Contributor

shihabdider commented Jan 27, 2025

Is your feature request related to a problem? Please describe.
We want to have a consistent copy-number axis across all tracks in the pan-genome view for easier comparison of data between tracks. Currently, it's difficult to mentally compare data in two different plots because the axis have wildly different ranges and tick values.

Describe the solution you'd like
Briefly, the axis range and tick values should correspond to that of the Total CN Graph across all the plots.
E.g

Image

In the above example, the denoised coverage plot (and all other plots) should have a range between 0 and 4.5, with tick values 0, 0.5, 1, 1.5, ... 4.5, corresponding to the range of the Total CN Graph.

  1. For points in the other plots which lie outside of the range (e.g the point near 10.233 above in the denoised coverage graph), simply coerce them to appear at the topmost tickline of the range.
  2. Double the padding of the range for the Total CN Graph (from 1.5 to 3, i.e so that the max of the range here would be 6, not 4.5-- this is to capture some points in other plots which lie a little above the range defined by the Total CN Graph segments).
  3. Axis syncing should be globally enabled by default, with a button toggle to globally relax syncing for all plots--returning the original axis ranges for all plots (e.g 0 to 17.7 in the denoised coverage plot above)
  4. (reach goal) Indicate a break in the y-axis where outliers (pushed to the topmost tickline) are present. I.e create a final empty-label tickline (or maybe just labeled outlying) that goes above the max tickline, push the outliers to this line, and place a break symbol between this topmost tickline and the max tickline of the range.e.g

Image

Additional context
Outliers may result in highly compressed axes, this is addressed in a separate issue (#32)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
high priority / sprint high priority items or aligned with week's sprint
Projects
None yet
Development

No branches or pull requests

2 participants