Open carissableker opened 7 months ago
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)
orp4c.add_annotation_image(url="file:images/logo_UCSD.png", network)
orp4c.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.