Skip to content

Storage of enabled tracks and genomic coordinates when the page is refreshed #3928

Answered by cmdcolin
LankyAlec asked this question in General
Discussion options

You must be logged in to vote

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 by createViewState, 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…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@LankyAlec
Comment options

Answer selected by LankyAlec
Comment options

You must be logged in to vote
1 reply
@cmdcolin
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants