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 |
|---|---|
idid: ElementId | |
typetype: types.literal('AddTrackWidget') | |
| view | |
trackContainerIdtrackContainerId: types.maybe(types.string) | 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 | |
trackTypestring | |
| warningMessage |
Methods
| Member | Description |
|---|---|
getTrackConfig(timestamp: number) => DraftTrackConfig | undefined |
Actions
| Member | Description |
|---|---|
| setMixinData | 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 |