Defaults for all tracks
TL;DR: most track-menu settings carry a push-pin beside them. Clicking it makes that value the default for every track of the same type. An outline pin means "not the default", a filled one means it is. Pinning never edits a track: tracks that have no value of their own follow the new default immediately, tracks you have already set keep theirs, and a snackbar offers to apply the default to those.
This is the in-app counterpart to the displayDefaults an administrator can
bake into config.json (see
display settings). Anyone can set these, and
they last beyond the current session.
Setting a default
Open the track menu, find the setting, and click the pin on the row for the value you want. The pin fills in, and a "Set as the default" snackbar confirms it.
Three things follow from the pin only writing the default:
- Tracks with no value of their own for that setting pick the default up at once, including tracks you open later.
- Tracks you have already set keep what you gave them. The snackbar's Override N customized tracks action is what reaches those: it drops their own value so they follow the default instead.
- Choosing a value from a menu row, rather than from its pin, is a change to that one track, so a track you have clicked through is no longer following anything.
Clicking a filled pin clears the default again, and every track that was following it goes back to JBrowse's built-in value.
Defaults are keyed to the type of display rather than to all tracks at once. A read height default applies to your alignments tracks, a feature height default to your gene and feature tracks. Two track types that happen to share a setting name are independent.
How a setting is resolved
Each setting is read in this order, first hit wins:
- the value set on that track, if it has one
- your default for that display type, if you have pinned one
- JBrowse's built-in value
Finding the tracks a default affects
An open track whose appearance comes from a default is marked with a pencil in the track selector. It opens a dialog naming the setting, the built-in value, and what the track is showing now, with Clear session default to remove it. Closed tracks carry no marker, because nothing is being shown differently yet.
The same pencil marks a track you have edited directly. The tooltip and the dialog say which of the two it is, and a track affected by both lists them separately.
Reviewing all of your defaults
Tools → Preferences → Reset to defaults... lists every preference that differs from its default, including one row per pinned default. Revert a single row with its revert button, or reset them all at once.
Where defaults are kept
Pinned defaults are personal and are stored in your browser, or in the app in JBrowse Desktop. They are not part of the session, so they survive a reload and apply to the next session you open, and they are not included when you share one:
- A session you share or export records the values the tracks were actually showing, so whoever opens it sees the settings you had turned on even if they have pinned different defaults of their own.
- A setting you left at JBrowse's built-in value has nothing to record, so if the person opening it has pinned something there, theirs applies — the same way they view your session in their own theme.
- A track that recipient opens fresh in that session follows their defaults, as usual.
- Embedded components (
@jbrowse/react-linear-genome-view2and friends) have no preference storage, so a default set there lasts as long as the page.
Settings that offer a default
Each setting below resolves through a session-wide default for its display type. Follow a link for what the setting does and what it falls back to when nothing is pinned.
The pin itself lives on the setting's own row in the track menu, so you only meet it where that menu offers the setting. A row appears while it applies to what the track is drawing — line width on a line rendering, point size on a scatter, the sashimi options once sashimi arcs are on — and a display that borrows another display's settings but curates its own menu (the synteny display reuses the alignments ones) offers only the rows it lists.
Settings not listed here are per-track only. Making one of those persistent is a config edit.
See also
- Display settings
- Configuring tracks
- Alignments track
- DISPLAY_TYPE_DEFAULTS.md — the promotable slots and CSS-style cascade behind the resolution order above, and how a default survives being serialized into a shared session