Force tracks to load at higher zoom using react-linear-genome-view #2397
Replies: 2 comments 3 replies
-
you can set the maxDisplayedBpPerPx setting on the linear-genome-view BaseLinearDisplay for example if you had a variant track
that means that at 1000 bases per pixel (imagine a screen width of 1600px, that would be approx 1600*1000=1,600,000bp in screen view) then it stops displaying. note that 1000 is the default for most tracks so you could increase it there is another way where you can essentially specify this setting within the session instead of in the config if interested. we have also considered auto-calculating whether a track can be displayed but it's just a hardcoded limit right now |
Beta Was this translation helpful? Give feedback.
-
I encountered this problem under the same usage scenario. My solution is to use MutationObserver to monitor page elements, and when the FORCE LOAD child element appears, simulate clicking the button.
|
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm currently using react-linear-genome-view embedded in my React site, however the desired zoom level requires users to click "force load" for tracks. With the tracks we're using, the loading time isn't too bad, so we'd quite like to have it load data using our default session straight away.
Is it possible to force load the tracks programmatically here? Or at least configure a different base range for this message to appear?
Cheers,
-Thomas
Beta Was this translation helpful? Give feedback.
All reactions