You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be awesome to be able to not only accept local files, but except Python data objects, for example stuff from biopython, i.e. a parsed GFF, or one of the Sequence() objects.
One way to do this could be to simply save this to a temp local file and also host it to the browser using Flask.
So then, in a Jupyter cell:
# biopython code
import pprint
from BCBio.GFF import GFFExaminer
in_file = "your_file.gff"
examiner = GFFExaminer()
in_handle = open(in_file)
pprint.pprint(examiner.available_limits(in_handle))
# adding it from a variable in memory to our browser
config.add_track(examiner)
Some precedent is the data frame track in JBrowseR, where you pass a variable directly to the browser. But this would be more performant if it didn't rely on the FromConfigAdapter.
Currently supporting adding a track from a pandas DataFrame. Could be more performant if it didn't rely on the FromConfigAdapter as mentioned above, but could explore other options.
It would be awesome to be able to not only accept local files, but except Python data objects, for example stuff from biopython, i.e. a parsed GFF, or one of the
Sequence()
objects.One way to do this could be to simply save this to a temp local file and also host it to the browser using Flask.
So then, in a Jupyter cell:
Some precedent is the data frame track in JBrowseR, where you pass a variable directly to the browser. But this would be more performant if it didn't rely on the FromConfigAdapter.
GMOD/dash_jbrowse#6
The text was updated successfully, but these errors were encountered: