-
Notifications
You must be signed in to change notification settings - Fork 15
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
add_image_annotation only works https #131
Comments
Hi, Carissa -- I tried this in the Cytoscape GUI ... and chose the background layer, which I assume you mean to do (??). With a little work, I got Cytoscape to show a logo file (UCSD-Jacobs School) as a background annotation. The URL I used was file:///C:/Users/bdemc/Desktop/UCSD-Jacobs.png ... note the "file:///" preceding the path. Confession: I didn't use py4cytoscape to do this ... I directly edited the session file and reloaded the session. (If you'd like to know the exact mechanics, I can burden you.) Still, I'd expect the same result by using py4cytoscape. What do you think?? |
Hi,
I am trying to load a background annotation (image) to my network. Using
p4c.add_annotation_image(url="https://www.ucsd.edu/_resources/img/logo_UCSD.png", network)
works: the logo is loaded, I can also view it in the ImageManager, the output is as expected
using
p4c.add_annotation_image(url="http://www.ucsd.edu/_resources/img/logo_UCSD.png", network)
or (after downloading the image)
p4c.add_annotation_image(url="images/logo_UCSD.png", network)
or
p4c.add_annotation_image(url="file:images/logo_UCSD.png", network)
or
p4c.add_annotation_image(url="/absolute/path/images/logo_UCSD.png", network)
creates an empty rectangle in the network with the output:
is missing the URL.
Using Cytoscape 3.10 or 3.10.2 with py4cytoscape 1.9.0 on Ubuntu.
Not sure if this is a local issue or not.
The text was updated successfully, but these errors were encountered: