Skip to content

Looking for a way to collapse JBrowse categories by default #4550

Answered by cmdcolin
jdepons asked this question in General
Discussion options

You must be logged in to vote

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

{
  "configuration": {
    "hierarchical": {
      "defaultCollapsed": {
        "topLevelCategories": true
      }
    }
  },
  "tracks": [ /* your tracks */], // just putting this here to give you an idea of where it goes in the config
  "assemblies": [ /* your assemblies */],
  "defaultSession": { /* your default session here */}
}

here is …

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
4 replies
@cmdcolin
Comment options

@jdepons
Comment options

@jdepons
Comment options

@cmdcolin
Comment options

Answer selected by cmdcolin
Comment options

You must be logged in to vote
2 replies
@cmdcolin
Comment options

@carolyncaron
Comment options

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