Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Different nodes with same name
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Gary Bader  
View profile  
 More options Dec 14 2005, 9:03 pm
From: Gary Bader <ba...@cbio.mskcc.org>
Date: Wed, 14 Dec 2005 21:03:26 -0500
Local: Wed, Dec 14 2005 9:03 pm
Subject: Re: [Cytoscape-discuss] Re: Different nodes with same name
Hi,

hsc-coop wrote:
> Thanks for all the input, the problem that I have is not nodes in the
> same network but rather in different networks. For example I have a
> gene in 2 networks, in one I want it to be a primary node and in
> another a secondary node. If I want to use vizmapper to color the node
> according to whether is is primary or secondary it must be mapped to an
> attribute. But this value must be different for the gene in the 2
> networks since it is primary in one and secondary in the other. This
> was solved by giving a unique identifier and changing the canonicalName
> which I believe is what the label is mapped to currently.

> Now, I have come across a similar problem. My program creates a network
> based on an existing network created from a file, so I append the
> existing network to my new empty one. The problem is that if I do this
> for another network, it is possible that this network may have nodes
> with the same name as the first one generated. Therefore if the second
> generated network contains a node with the same name then they are
> technically the same node even though they should not be.

> So far I have mostly worked with the NodeViews so the problems have not
> been apparent(since a node can have different NodeViews in different
> networks).
> However, now I need to create edges in these generated networks. The
> problem I have is when I change an edge attribute of nodes that are in
> both networks,  the edge attribute will be shared in both. That is, the
> value set last will be shared.

> I tried using:
> getCyEdge(String source_alias, String edge_name, String target_alias,
> String interaction_type)
> with a unique edge_name but it still gets the same edge if the source
> and target are the same.

Unfortunately, the name is not really used for much in this method -
this needs to be fixed in a future version.  The way to force a
different edge is to set a different interaction_type e.g. pp1, pp2,
etc.  A general solution to this would be to create network specific
attributes, but that might not happen for a while, so this is the best
workaround right now.

Hope that helps,
Gary

> Any ideas for getting around this? I was thinking I would need to
> iterate through the nodes/edges in my original networks and then create
> nodes with unqiue names that have the same attributes and graph index.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.