Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration with other bioinformatics libraries #6

Open
teresam856 opened this issue Dec 7, 2021 · 1 comment
Open

Integration with other bioinformatics libraries #6

teresam856 opened this issue Dec 7, 2021 · 1 comment

Comments

@teresam856
Copy link
Contributor

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.

GMOD/dash_jbrowse#6

@teresam856
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant