GMOD / jbrowse-components

Source code for JBrowse 2, a modern React-based genome browser
https://jbrowse.org/jb2
Apache License 2.0
205 stars 61 forks source link

Add ability for adapters to supply a ReactComponent that helps load itself #2848

Closed cmdcolin closed 1 year ago

cmdcolin commented 2 years ago

Adapters can sometimes have special logic that is needed to instantiate them that goes beyond the simple "file+index" guess adapter method

As an alternative, we could let the adapter provide a reactcomponent that contains form elements that help instantiate a particular adapter type

This will be especially helpful for synteny tracks which can require assembly names and file(s) to be loaded at once

Then, things like the DotplotImportForm can loop over all the "SyntenyAdapters" (this is a new concept as well, a group of adapter types might be called SyntenyAdapters) and provide put their ReactComponent inside the import form

Perhaps also, the Add track widget can provide access to these ReactComponents too

cmdcolin commented 2 years ago

the customized "add track workflows" can help with this I think

cmdcolin commented 2 years ago

could possibly keep this open but it's no longer "impossible" to have custom add track workflows

cmdcolin commented 1 year ago

the custom add track workflows may be sufficient for this