Re: [Cytoscape-discuss] how to add different images to nodes automatically

207 views
Skip to first unread message

Barry Demchak

unread,
Mar 20, 2018, 9:32:14 AM3/20/18
to ashraf....@gmail.com, cytoscape-helpdesk
... forwarding this to Cytoscape-helpdesk. Cytoscape-discuss is no longer in use.

On Mon, Mar 19, 2018 at 11:11 PM, Md Izhar Ashraf <ashraf....@gmail.com> wrote:
Dear all,

I have a big network of size N and want to display each node by images( different image for different nodes). How can I add all those image automatically just by providing its path. I can manage to add image one by one by [Image/Chart 1] button but that is not feasible for a big size network.

Please let me know, if any of you having any simple idea.


regards
Ashraf

--
You received this message because you are subscribed to the Google Groups "cytoscape-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to cytoscape-discuss@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-discuss.
For more options, visit https://groups.google.com/d/optout.



--
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
: Barry Demchak, PhD
: National Resource for Network Biology (NRNB)
: UC San Diego
: Department of Medicine
: Biomedical Research Facility II, Room 3A15
http://orcid.org/0000-0001-7065-7786
: Land line: (858) 822-4756, Mobile: (858) 452-8700
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Scooter Morris

unread,
Mar 20, 2018, 10:51:07 AM3/20/18
to cytoscape...@googlegroups.com
Sure, just add a String column to your node table, then add a URL to each image in that column.  Then use Image/Chart and set up a Mapping for that column and use a mapping type of "Passthrough Mapping".

-- scooter
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpd...@googlegroups.com.
To post to this group, send email to cytoscape...@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-helpdesk.
To view this discussion on the web visit https://groups.google.com/d/msgid/cytoscape-helpdesk/CAGMW4KHW7vhKofCiS9wezm5hWAPSK1sdH7KqmOy9Yq%2BF0avfVg%40mail.gmail.com.

ashraf....@gmail.com

unread,
Mar 21, 2018, 11:48:59 AM3/21/18
to cytoscape-helpdesk
> from it, send an email to cytoscape-disc...@googlegroups.com.
>
> To post to this group, send email to cytoscap...@googlegroups.com.
>
> Visit this group at https://groups.google.com/group/cytoscape-discuss.
>
> For more options, visit https://groups.google.com/d/optout.
>
>
>
>
>
>
>
>
>
>
>
> --
>
>
>
>
>
>
>
>
> vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
>
> : Barry Demchak, PhD
>
> : National Resource for Network Biology (NRNB)
>
> : UC San Diego
>
> : Department of Medicine
>
> : Biomedical Research Facility II, Room 3A15
>
> : http://orcid.org/0000-0001-7065-7786
>
> : Land line: (858) 822-4756, Mobile: (858) 452-8700
>
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
>
>
>
> --
>
> You received this message because you are subscribed to the Google
> Groups "cytoscape-helpdesk" group.
>
> To unsubscribe from this group and stop receiving emails from it,
> send an email to cytoscape-helpd...@googlegroups.com.
>
> To post to this group, send email to cytoscape...@googlegroups.com.
>
> Visit this group at https://groups.google.com/group/cytoscape-helpdesk.
>
> To view this discussion on the web visit https://groups.google.com/d/msgid/cytoscape-helpdesk/CAGMW4KHW7vhKofCiS9wezm5hWAPSK1sdH7KqmOy9Yq%2BF0avfVg%40mail.gmail.com.
>
> For more options, visit https://groups.google.com/d/optout.



Dear @Scooter Morris
Thanks for your response. I tried to follow your steps but still not succesful to all image links. I don't have any doubt on your instruction, possibly I'm doing some silly mistake in my steps. Toy example of my steps are following:


[edgefile.csv] %file name
Source,Target,Weight
1,2,1
2,3,6
1,3,7
2,4,2
4,5,1


[urlfile.csv] %file name
name,Image URL
1,/home/compbio/Desktop/imagefile/im001.jpg
2,/home/compbio/Desktop/imagefile/im002.jpg
3,/home/compbio/Desktop/imagefile/im003.jpg
4,/home/compbio/Desktop/imagefile/im004.jpg
5,/home/compbio/Desktop/imagefile/im005.jpg


also tried by:
[urlfile.csv] %file name

name,Image URL
1,1: Image: /home/compbio/Desktop/imagefile/im001.jpg
2,2: Image: /home/compbio/Desktop/imagefile/im002.jpg
3,3: Image: /home/compbio/Desktop/imagefile/im003.jpg
4,4: Image: /home/compbio/Desktop/imagefile/im004.jpg
5,5: Image: /home/compbio/Desktop/imagefile/im005.jpg

in all cases, Mapping Type: 'Passthrough Mapping'


Please, help me to find my mistakes!


regards
Ashraf

Scooter Morris

unread,
Mar 21, 2018, 1:06:09 PM3/21/18
to cytoscape...@googlegroups.com
You need to put in a URL, not a path.  It may work with a file url:
file:///home/compbio/Desktop/imagefile/im001.jpg

-- scooter

Md Izhar Ashraf

unread,
Mar 24, 2018, 3:23:44 AM3/24/18
to cytoscape...@googlegroups.com
Thank you very much  @scooter, thanks a lot. This work for me ! ;)

regards
Ashraf




--
You received this message because you are subscribed to a topic in the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cytoscape-helpdesk/nmSPX5AcY4U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cytoscape-helpdesk+unsubscribe@googlegroups.com.
To post to this group, send email to cytoscape-helpdesk@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages