Skip to content

Conversation

@cmdcolin
Copy link
Collaborator

@cmdcolin cmdcolin commented Nov 4, 2025

Fixes #2110
Fixes #4424

This adapts code from https://jmonlong.github.io/Hippocamplus/2017/09/19/mummerplots-with-ggplot2/ (also added to dotplot view) to 'diagonalize' or reorder chromosomes in the synteny view

Also adds alpha transparency/opacity slider and min length sliders and some color options like color by query

@cmdcolin
Copy link
Collaborator Author

cmdcolin commented Nov 4, 2025

these features can greatly enhance complex synteny plot readability

before
image

after
image

@cmdcolin
Copy link
Collaborator Author

cmdcolin commented Nov 4, 2025

currently uses globalAlpha for the opacity but might want to use per-line alpha as globalOpacity is canvas specific

@cmdcolin cmdcolin force-pushed the adjust_alpha branch 3 times, most recently from c6b3f4c to 11092eb Compare November 4, 2025 21:28
@cmdcolin
Copy link
Collaborator Author

cmdcolin commented Nov 5, 2025

Example of coloring by query sequence with a mild alpha-transparency and diagonalized entries

image

comparing to our 'before pic' this is much better

image

@cmdcolin cmdcolin mentioned this pull request Nov 5, 2025
@cmdcolin cmdcolin changed the title Adjust alpha, adjust min alignment length, and diagonalize synteny plots Add ability to adjust alpha, min alignment length, color scheme and option to diagonalize synteny plots Nov 5, 2025
@cmdcolin cmdcolin added the enhancement New feature or request label Nov 5, 2025
@cmdcolin cmdcolin merged commit e72dc7b into main Nov 5, 2025
7 of 8 checks passed
@cmdcolin cmdcolin deleted the adjust_alpha branch November 5, 2025 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dotplot show all regions slightly inaccurate after submitting import form Auto-diagonalize dotplot/synteny plots

2 participants