Replies: 1 comment 2 replies
-
hi there, glad you figured this out. it is true that the defaultSession is a little hard to handcode, because it is sort of a snapshot of the state of the app and contains a lot of things that aren't exactly the most intuitive. as an alternative, you can actually manually call functions on the value returned by createViewState an example of this is here, I manually call showTrack with the trackId, and then that is shown that way, you don't have to deal with all the intricacies of the defaultSession format |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
[Closed.]
I figured it out and it works now. the 'id' doesn't matter and make sure the tracks-> configuration is matching your trackId in assembly.js. The configuration for display share the same prefix of it.
I am new to the web development and JBrowse. I've met some issues about the index.html, thanks a lot in advance for your help.
I wanted a default session for my data(1 assembly and multiple tracks). I succeed with showing 'the default session' in tutorial.
I am not sure what to pass to the 'defaultSession' when creating a state. (I didn't find the answer in the tutorial page, lmk if I missed anything)
Like, the line 54 in the attached img. I pass the configuration: 'farr1-ReferenceSequenceTrack', which match my trackId in my assembly.js
I don't know how to change the other part. For instance, what should the 'tracks{ id:} 'be? and what should I pass to the 'display{id, type and configuration}'
Thanks,
Yuan
Beta Was this translation helpful? Give feedback.
All reactions