AppCoreJBrowseModel
Auto-generated from the @jbrowse/mobx-state-tree model in the source — see the developer guide for concepts. Built into JBrowse core. View source.
Holds the loaded config file, usually at rootModel.jbrowse, with actions
that add and remove its assemblies and tracks. The model builds on the
JBrowseRootConfig config model, which a
state model can do because a config model is itself an MST tree.
Getters
| Member | Description |
|---|---|
assemblyNamesstring[] | |
rpcManagerRpcManager |
Actions
| Member | Description |
|---|---|
| addAssemblyConf | |
removeAssemblyConf(assemblyName: string) => void | |
| addTrackConf | |
| addConnectionConf | Adds to the config's own connections, which every visitor to this instance loads. Takes a snapshot as readily as a built config model — the array coerces — since callers hand it plain JSON (a session spec's sessionConnections, the CLI's add-connection output). |
deleteConnectionConf(configuration: AnyConfigurationModel) => boolean | |
| deleteTrackConf | |
| updateTrackConf | Updates an existing track configuration. Used to sync editable configs back to the frozen tracks array. A trackId the array repeats replaces its last entry, the one the session resolves it to. |
addPlugin(pluginDefinition: PluginDefinition) => void | |
removePlugin(pluginDefinition: PluginDefinition) => void | Removes the entry the loaded copy came from — the version-pinned definition, or the bare store ref that resolved to it. Not every entry sharing a name or a ref, so the update flow's remove-then-add swaps one version for another; holdsPluginVersion argues both halves. |
setDefaultSessionConf(sessionConf: AnyConfigurationModel) => void | takes the live session or a plain session snapshot |
| addInternetAccountConf | |
deleteInternetAccountConf(configuration: AnyConfigurationModel) => boolean |