-
Is there a way to tell JBrowse 2 to collapse all the track categories by default? I have 19 different assemblies that include up to 100 categories each. The category names are not consistent and differ between assemblies. I’ve listed a section of my default config for one of the assemblies below. Is there a way to set “collapsed=true” as a default or do I need to explicitly list every category as listed below? Currently, if a new category is added or a category name changes I need to update the config. Any help is appreciated as it is difficult to mange this for 19 different assemblies. "widgets": { |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
so it looks like your setting that you have shown is in the "session state" part of the config (e.g. in the defaultSession) there is instead a configuration slot for this https://jbrowse.org/jb2/docs/config_guides/track_selector/ here is an example of a config.json that collapses all "top level categories" by default
here is a config that collapses all the "subcategories" by default... e.g. it lets the user get a glimpse of all the subcategories in the tree. you can see it looks like this
note that these config options are sort of "in tension" with the session. the session state (e.g. when you refresh the page) remembers the category collapsed states, so what you see as collapsed is not always taken from the configuration, sometimes session overrides it. hope that helps |
Beta Was this translation helpful? Give feedback.
-
I thought I'd jump into this thread since I'm seeing a similar issue since upgrading from v2.11.0 to v2.15.4. My config settings for setting specific track categories as collapsed by default are no longer working on the newest version. Here is my config:
I've tried opening the session in a private window and all tracks are open by default. @colin do you have any ideas, or has the way to specify which categories to collapse changed in between these versions? |
Beta Was this translation helpful? Give feedback.
so it looks like your setting that you have shown is in the "session state" part of the config (e.g. in the defaultSession)
there is instead a configuration slot for this https://jbrowse.org/jb2/docs/config_guides/track_selector/
here is an example of a config.json that collapses all "top level categories" by default
you can see it looks like this
here is …