-
/Hi, I have a problem that I can't solve. Also, while I'm at it, I ask you if there is a way to disable the "force load" that appears when the genomic window is very large and make sure that the trace elements appear automatically. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi there For example, you mention wanting to keep the same tracks open. You could use a Same thing with the location... You could get Ultimately, the embedded widget relies a lot on the programmer to implement some custom behaviors like this, but the upside is that, you can programmatically manipulate it :) just requires some deep diving into our docs (for example, it's hard to find, but this is the visibleLocStrings doc entry https://jbrowse.org/jb2/docs/models/lineargenomeview/#getter-visiblelocstrings), but welcome to ask questions to help clarify too. As far as the "force load thing", you can edit your track config to change jbrowse-components/test_data/volvox/config.json Lines 1541 to 1547 in eafc6f7 For a gene track |
Beta Was this translation helpful? Give feedback.
-
all your tips worked great. thank you |
Beta Was this translation helpful? Give feedback.
Hi there
It looks like you are using the "embedded widget". This means that you may be able to get the expected behavior by programmatically, but those types of features are not built in. The embedded widget basically relies on the programmer to implement custom behaviors like this.
For example, you mention wanting to keep the same tracks open. You could use a
getSnapshot
on the object returned bycreateViewState
, and then inspect state.session.views[0].tracks, this will tell you what tracks are open, and then again, when you change assemblies, you could use state.session.views[0].showTrack(trackId) one or more times to match the tracks.Same thing with the location...
You could get
const…