Closed jvwong closed 7 years ago
I assume you are talking about the PNG download? I am aware of this. For some reason, if you pass in the full pathway option, cytoscapejs throws an error resulting in an empty file for some pathways. Interestingly enough, the screenshot button still functions fine. Of course I have been unable to prove it, but I have found that NCI pathways have this problem but other datasources don't. I am doing investigating for the moment.
I also see this for (Reactome) 'Signaling by BMP'
Ok good to know. So far I have seen the problem with several NCI pathways but haven't seen it with a couple INOH pathways. Trying to find common threads between all the broken pathways.
@d2fong Error message and example of a pathway that has this problem
Dylan recently changed SBGN-renderer, when beta is back up test to see if it fixed the problem.
I doubt any of the recent changes I made fixed this problem.
This function seems to have thrown a NS_ERROR_FAILURE error when exporting one of the pathways to an image in Manfred's app.
Each browser has a max file size limit. If it's too large, you have to use a smaller file (jpg or lower dpi).
Ok thanks Max, that solved the problem.
Fixed in commit 4733dbad33c1cdd7e9b4cf796a5fc87208a7849e. Dropped scaling from 10 -> 5, which should be enough overhead for most reasonable pathways. Will drop it lower if size becomes an issue again.
Breaking case: http://mj3cheun.github.io/pathways-search.html#/pathway?uri=http%3A%2F%2Fidentifiers.org%2Freactome%2FR-HSA-69541
The downloaded file is empty.