-
Notifications
You must be signed in to change notification settings - Fork 14
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
Zoom parameter has no effect in export_image #90
Comments
Thanks, Nils ... This Zoom case caused a lot of discussion in the Cytoscape Automation group, and there is a pending solution proposed in issue #89. Feel free to browse it. In the meantime, I think all of your concerns may be addressable using the new Cytoscape v10 export functions ... there is one function per file type. Supposing PNG, you can try the new function via Swagger (do you know how to do this?) and { For your Zoom experiment, try 100 for "no zoom" and 200 for "zoom in". On my PC, your large_ssn.xgmml renders 45KB for zoom 100 and 118KB for zoom 200. I suspect that your export_image() problem may be because you're specifying both a height/width and a zoom. I suspect they conflict and are redundant. Also, specifying height and width is problematic because Cytoscape will likely override one of them in the interest of maintaining aspect ratio. So, all in all, it's probably better to just allow a zoom argument, which is what the Cytoscape v10 functions do. Comments? |
This looks interesting. I am not sure how to use Swagger -- is that through a JSON object passed to the REST API? |
Hi, Nils -- OK ... you're in for a treat. I'll give three equivalent ways of checking out Cytoscape functions that aren't covered in py4cytoscape (or are too new to have py4cytoscape functions).
From the help text, you can see a number of other parameters you'll find useful.
A full explanation of this style is here.
Improved documentation infrastructure and content standards New interactive CyREST call prototyping Actually, the whole paper is germane, in case you have time for a good read. This is what the Swagger window looks like: |
Thank you very much for this information. I have questions, but unfortunately, I will be away for a few weeks so I'll get back to you when I return. |
The export_image function in the py4cytoscape code has a zoom parameter. It doesn’t seem to be acknowledged by 3.10 using a recent version of py4cytoscape. When using py4cytoscape with Cytoscape 3.8, the code doesn’t seem to respect that parameter either, or at least there is no apparent effect when I change it.
Related to #81
The text was updated successfully, but these errors were encountered: