FromConfigRegionsAdapter
Auto-generated from the config schema in the source. See the config guide for concepts. Provided by the config plugin. View source.
Supplies an assembly's reference names and sizes inline in the config, with no sequence.
Example usage
Supplies refNames+sizes with no sequence, as the adapter of an assembly's
sequence (a ReferenceSequenceTrack):
{
type: 'ReferenceSequenceTrack',
trackId: 'my_refseq',
adapter: {
type: 'FromConfigRegionsAdapter',
features: [
{ uniqueId: 'ctgA', refName: 'ctgA', start: 0, end: 50000 },
{ uniqueId: 'ctgB', refName: 'ctgB', start: 0, end: 6079 },
],
},
}Related links
- Track: ReferenceSequenceTrack
- Display: LinearReferenceSequenceDisplay
- Config guide: Supported file types
Config slots
Adapter slots go inside the track's adapter: "adapter": { "type": "FromConfigRegionsAdapter", ... }. FromConfigRegionsAdapter 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 = '' |
leave unset, so the adapter cache keys on a hash of the config and changed features are a new adapter. Code that builds a large config sets it with withAdapterId, which stamps that hash in. A hand-written value replaces the hash, so the same value over different features serves the first ones |
featuresfrozen = [] |
one entry per reference sequence, each with a uniqueId, refName, start: 0 and end set to that sequence's length. This is what defines the assembly's reference names and sizes; no bases are supplied, so base-level views are empty. |
Retired keys
An older config may still write these. Each loads without an error, and jbrowse validate reports it as stale.
| Key | On load |
|---|---|
featureClass |
ignored |