FromConfigAdapter
Auto-generated config schema for the current JBrowse release — see the
config guide for concepts. Provided by the config
plugin.
View source.
Example usage
{
type: 'FeatureTrack',
trackId: 'my_track',
name: 'My track',
assemblyNames: ['hg38'],
adapter: {
type: 'FromConfigAdapter',
features: [
{ uniqueId: 'f1', refName: 'ctgA', start: 100, end: 200, name: 'feature1' },
],
},
}
See the Config slots section below for all available configuration fields.
supplies features inline in the config instead of reading a file, useful for small feature sets added via a URL or session spec
Related links
- Track: FeatureTrack
- Display: LinearArcDisplay
- Display: LinearBasicDisplay
- Display: LinearMultiRowFeatureDisplay
- Display: LinearScoreDisplay
- Guide: FromConfig adapters
- Guide: Supported file types
Config slots
These slots go inside the track's adapter:
"adapter": { "type": "FromConfigAdapter", ... }. This adapter has no uri
shorthand — give it the
location slots below. Slot types (fileLocation, frozen, ...) are explained
in the config slot types reference. Slots a
base configuration contributes are listed here too, so this table is the whole
surface.
| Slot | Description |
|---|---|
adapterIdstring = '' | stable identifier used as the adapter cache key; avoids hashing the (potentially large) features array. optional — falls back to hash. |
featuresfrozen = [] | the features themselves, as an array of plain objects. Each needs a uniqueId, refName, start and end (0-based half-open); anything else — name, type, score, strand, nested subfeatures — is carried through onto the feature as-is. |