-
Notifications
You must be signed in to change notification settings - Fork 13
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
to_svg() not working #10
Comments
pull request history #9 |
That example is confusing, if you run all the cells you are going to have orphaned "browser" objects in all but the last one, the "to_svg()" function is only going to convert the last one as there is no reference to the previous ones. |
I confirm this logic, but the last cell has the same error for me. |
Try, for example, just running the last 2 cells, that is the one after this note "Load BAM file by file path (Jupyter Notebook only)", the b.to_svg(). If you run them all you'll have 1 svg converted browser and 3 "live" igvs exported to your html. |
The example works for me, see the attached HTML. I ran this from the "binder" container linked from the top of the README. If you can't get it to work (1) confirm you are using the latest release of igv-notebook, and (2) zip and attach the html you are getting here. |
Also, if you have output saved from previous runs that was saved or check-pointed its still there of course, clear all your output before trying again. |
It is not working. I do confirm that I use the latest version (to_svg would not work otherwise, but it would be nice to have igv_notebook.version option). Here it is minimal example https://easyupload.io/otjj7u (link valid for 7 days) |
Terminal output after trying to transform the visualization to SVG
|
Yes I can see that, there's still a "live" igv instance in the last cell not svg. From the traceback it looks like there might be a difference in your notebook server, it doesn't like the "clear" keyword. Could you try running from the "binder" link at the top of the README? One frustration with developing anything for Jupyter is they change the API regularly with no notice, I implemented this following the documentation but perhaps its not available in older versions. In any event the first step would be to confirm this is a Jupyter or Python version issue, running the examples from the "binder" link would help confirm that. |
I'm on python version 3.9.1 |
It looks like the offending "clear" keyword is not needed, I removed it. If you want to test to see if this solves the issue you should be able to install from github as follows, or pull and build yourself
If that works I will push a pypi release, if not I will need to walk backwards through python versions to find the minimum required. So far we know it works with 3.9.1, does not work with 3.6. Its quite late here in California and I'm quitting for the evening. |
|
This is now released as 0.3.1 |
Hello,
Thank you for the fast reaction here #8
I just tested the implementation in Jupyter Notebook and unfortunatly it is not working as desired.
I tried your example notebook BamFiles_Notebook. Run all the cells and exported it as html. Then I opened the html file and in the igv browser the error was "Error accessing resource: data/gstt1_sample.bam.bai Status: 0"
So I guess the visualization was not converted into SVG? I also tried doing it manullay from the browser with "to SVG". It didn't work.
Could you look into this?
Best,
The text was updated successfully, but these errors were encountered: