Skip to content

Fixed zoom brush coordinate conversion for UMAP dimred tab#31

Open
isha2106 wants to merge 1 commit into
the-ouyang-lab:mainfrom
isha2106:main
Open

Fixed zoom brush coordinate conversion for UMAP dimred tab#31
isha2106 wants to merge 1 commit into
the-ouyang-lab:mainfrom
isha2106:main

Conversation

@isha2106
Copy link
Copy Markdown

@isha2106 isha2106 commented Apr 9, 2026

Right now the zoom option does not work correctly. See below:

umap_zoom

The brush coordinates returned by Shiny's brushOpts are in proportion space (0–1) when the plot uses a coordinate system that doesn't directly map to data space. This fix converts the brush proportions to actual UMAP coordinate ranges using the data's min/max, so the zoom correctly targets the brushed region. After resolving:

resolved_zoom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant