AddTrackModel
Auto-generated from the @jbrowse/mobx-state-tree model in the source. See the developer guide for concepts. Provided by the data-management plugin. View source.
Holds the Add track widget's form: the data file and its index, the adapter and track type guessed from them, the track name and assembly, and the URL list for adding several tracks at once.
Properties
| Member | Description |
|---|---|
idstring · default createElementId() |
The identifier references to this node resolve through. A snapshot that leaves it out gets a generated one. |
type"AddTrackWidget" |
Always "AddTrackWidget", the name a snapshot selects this model by. |
| view |
|
trackContainerIdstring | undefined |
Which of the view's track containers the new track opens in, by id. Absent, the usual case, means the view itself. The same property on HierarchicalTrackSelectorWidget sets this one. |
Volatiles
| Member | Description |
|---|---|
workflowNamestring |
The workflow on screen. Outside createVolatileState, so it outlives clearData: a user adding several MAF tracks keeps the MAF form. |
trackDataFileLocation | undefined |
|
indexTrackDataFileLocation | undefined |
|
altAssemblyNamestring |
|
altTrackNamestring | undefined |
|
altTrackTypestring |
|
adapterHintstring |
|
textIndexTrackboolean |
|
textIndexingConfIndexingAttr | undefined |
|
mixinDataRecord<string, unknown> |
|
mixinMissingstring | undefined |
|
detectedIndexNamestring | undefined |
|
workflowFormsRecord<string, object | undefined> |
Getters
| Member | Description |
|---|---|
trackContainerTrackContainer | undefined |
The track list a submitted track opens in. |
trackAdapterAdapterConfig | undefined |
|
trackNamestring |
|
submittableTrackNamestring |
The trimmed name the track is added under. Check this one for an all-whitespace entry: !!trackName accepts ' ' and creates a track whose name is blank in the selector. |
uris(string | undefined)[] |
|
isFtpboolean |
|
isRelativeUrlboolean |
|
wrongProtocolboolean |
|
adapterHintNotConfigurableboolean |
Returns true if the user selected an adapter from the dropdown but the extension point couldn't build a config for it |
assemblystring | undefined |
|
trackAdapterTypestring | undefined |
|
| localIndexNeed |
What a file picked from this computer, with the index field empty, is missing: its index (required, and the track cannot be added), or nothing, because it is read whole (wholeFile). Only when the format table's adapter is the one guessed, so a plugin's own guess is left be. |
trackTypestring |
|
| warningMessage |
Methods
| Member | Description |
|---|---|
getTrackConfig(timestamp: number) => DraftTrackConfig | undefined |
Actions
| Member | Description |
|---|---|
setMixinData(arg: Record<string, unknown>, missing?: string) => void |
What the adapter's picker adds to the track config, and why it cannot make a track yet, if it cannot. |
setWorkflowForm(key: string, form: object) => void |
Store one workflow's form; workflowForm in core reads and patches it. |
setWorkflowName(name: string) => void |
|
setAdapterHint(obj: string) => void |
|
setTextIndexingConf(conf: IndexingAttr) => void |
|
setTextIndexTrack(flag: boolean) => void |
|
setTrackData(obj: FileLocation) => void |
|
setIndexTrackData(obj: FileLocation) => void |
|
setDetectedIndex(obj: FileLocation, name: string) => void |
Records an index found beside the main file. Ignored when an index is already set, since a probe resolving late must never overwrite one typed while it was in flight. |
setAssembly(str: string) => void |
|
setTrackName(str: string) => void |
|
setTrackType(str: string) => void |
|
clearData() => void |
|
stageLocations(locations: FileLocation[]) => void |
Opens the bulk workflow with these local files added to any already staged. |