How to import node and edge files

32 views
Skip to first unread message

next.ge...@gmail.com

unread,
Nov 27, 2017, 9:38:13 PM11/27/17
to cytoscape-helpdesk
Hello,

I am unable to import simple tab-delimited fils into Cytoscape. The files were output by the R WGCNA library.

I tried OS X, Windows 10 and Linux Mint. I run Java 8 on all. I am not getting any errors and nothing happens and nothing is displayed.

I am enclosing my 2 files.

Thanks for helping!

Janos

Edge file (first few lines):

fromNode toNode weight direction fromAltName toAltName
1415672_at 1415753_at 0.622716312706475 undirected 1415672_at 1415753_at
1415672_at 1415785_a_at 0.633998664070004 undirected 1415672_at 1415785_a_at
1415672_at 1415813_at 0.605813963580751 undirected 1415672_at 1415813_at
1415672_at 1415816_at 0.619860622652972 undirected 1415672_at 1415816_at
1415672_at 1415821_at 0.628110580915915 undirected 1415672_at 1415821_at
1415672_at 1415873_a_at 0.634858867463709 undirected 1415672_at 1415873_a_at
1415672_at 1415919_at 0.626060320007112 undirected 1415672_at 1415919_at
1415672_at 1416037_a_at 0.635031123713435 undirected 1415672_at 1416037_a_at
1415672_at 1416070_a_at 0.637502248657686 undirected 1415672_at 1416070_a_at

Node file (first few lines):
nodeName altName nodeAttr.nodesPresent...
1415672_at 1415672_at blue
1415674_a_at 1415674_a_at turquoise
1415678_at 1415678_at turquoise
1415679_at 1415679_at turquoise
1415687_a_at 1415687_a_at turquoise
1415698_at 1415698_at blue
1415702_a_at 1415702_a_at turquoise
1415707_at 1415707_at blue
1415729_at 1415729_at turquoise
1415733_a_at 1415733_a_at turquoise
1415753_at 1415753_at blue
1415756_a_at 1415756_a_at turquoise
1415767_at 1415767_at turquoise
1415771_at 1415771_at blue
1415785_a_at 1415785_a_at turquoise
1415796_at 1415796_at turquoise
1415813_at 1415813_at blue
1415816_at 1415816_at turquoise
1415821_at 1415821_at turquoise
1415840_at 1415840_at blue
1415851_a_at 1415851_a_at turquoise

Scooter Morris

unread,
Dec 7, 2017, 11:39:56 AM12/7/17
to cytoscape-helpdesk
Hi Janos,
   What does your network look like?  If you are going to add node or edge data to an existing network, you need to make sure that you choose the matching keys.  In the case of edge data, it's extremely difficult to figure out how to match keys since our edge names are a combination of the source, target, and interaction.  If you don't have a network, then you don't want to import your edge file as a table, you want to import it as a network (File->Import->Network), then you can add the node information by doing File->Import->Table.

-- scooter

Barry Demchak

unread,
Dec 7, 2017, 11:47:12 AM12/7/17
to cytoscape-helpdesk

Hi –

 

I didn’t have any trouble importing these, but I must admit that there was a slight subtlety.

 

The trick is to import the edges file first … that establishes the network.

 

Once you do that, importing the nodes file adds attributes to the network nodes.

 

Have you tried this?? Do you get a good result??


On Monday, November 27, 2017 at 6:38:13 PM UTC-8, next.ge...@gmail.com wrote:
Reply all
Reply to author
Forward
0 new messages