jbrowse-components
jbrowse-components copied to clipboard
BAM store sequenceAdapter cannot be edited in the GUI
When you edit the config of a track with a BAM adapter, the sequenceAdapter slot comes up as null
in the GUI.
@cmdcolin indicated in grooming just now that this may have something to do with types.late
not quite working for this, and the sequenceAdapter having to be a types.frozen
. CRAM, in contrast, has this config slot as an AnyDataAdapterConfig slot type, which is probably the right thing to use here if it can be made to work.
pluginManager.pluggableConfigSchemaType('adapter')
It is not necessarily true that it cannot be edited in the GUI but that it is frozen so it is a JSON blob
See
Using https://github.com/GMOD/jbrowse-components/tree/bam_nonfrozen_seqadapter
Uncaught Error: invalid config slot definition for BamIndex.indexType: Maximum call stack size exceeded
Instantly get this error after running
Ultimately we would like to make it so that sequence adapters can be gotten automatically and not be part of the config.
Failing that, let's at least make it editable nicely in the GUI like the one for the CRAM adapter is.
currently edit it as json...would recommend auto-supplying from current assembly as alternative to working on this