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

feature request for exporting the igv-browser visualization #8

Closed
KalinNonchev opened this issue Jun 29, 2022 · 2 comments
Closed

feature request for exporting the igv-browser visualization #8

KalinNonchev opened this issue Jun 29, 2022 · 2 comments

Comments

@KalinNonchev
Copy link

Hello IGV-notebook team,

Thanks for this great package!
I have the following case:
When I am doing analysis and I look at specific genomic coordinates, often I want to share the jupyter notebook as html directly with the collaborators.
However, when I export the notebook as html file, the output of igv-notebook is missing.
It would be nice and very useful to export the igv-browser visualization. Would it be possible to render the javascript to an image so that it is visible in the html file under the code cell?

Best,

@jrobinso
Copy link
Contributor

I will look into this.

@jrobinso jrobinso mentioned this issue Jul 5, 2022
Merged
@jrobinso
Copy link
Contributor

jrobinso commented Jul 5, 2022

This is implemented for Jupyter Notebook only in version 0.3.0. A new function is added to "browser",

to_svg()

This function will convert the igv instance to a static SVG image. The "To SVG" button on the igv command bar does the same thing.

This will not work in JupyterLab or Colab environments, supporting this in those environments would be difficult, if even possible.

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

2 participants