Failed to import table from file (csv/xlsx)

814 views
Skip to first unread message

Anna W

unread,
Aug 3, 2016, 7:46:27 AM8/3/16
to cytoscape-helpdesk
Hi, 

I'm new to Cytoscape (v3.4.0) and have been trying to import a node table (tried csv and xlsx) but without success. I can import a table as an "unassigned table" but not straight into the node table. The import doesn't show any errors and according to the "Show tasks..." window the import was successful. However, it only imports the column headings; there is no data. 

There seem to be other threads that show this issue but I haven't yet seen a solution to this. 

Hope you can help.  

Thank you, 

Anna

Barry Demchak

unread,
Aug 3, 2016, 8:28:05 AM8/3/16
to cytoscape...@googlegroups.com

Thanks, Anna ...

Are you able to send us a small file that demonstrates this?

Barry Demchak -- from my mobile phone


--
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.
For more options, visit https://groups.google.com/d/optout.

Anna W

unread,
Aug 3, 2016, 9:19:38 AM8/3/16
to cytoscape-helpdesk
Hi Barry, 

I've added an example xlsx file and some screenshots. 

Things I have also tried:
  • renaming all the columns either to include or remove "shared name" and "name"
  • removing any column titles and unticking in "Advanced Options", "use first line as column names"
  • created new files and saved them as csv and xlsx before trying to import
Thanks for any help with this. 

Anna

On Wednesday, August 3, 2016 at 1:28:05 PM UTC+1, Barry Demchak wrote:

Thanks, Anna ...

Are you able to send us a small file that demonstrates this?

Barry Demchak -- from my mobile phone

On Aug 3, 2016 4:46 AM, "Anna W" <annaca...@gmail.com> wrote:
Hi, 

I'm new to Cytoscape (v3.4.0) and have been trying to import a node table (tried csv and xlsx) but without success. I can import a table as an "unassigned table" but not straight into the node table. The import doesn't show any errors and according to the "Show tasks..." window the import was successful. However, it only imports the column headings; there is no data. 

There seem to be other threads that show this issue but I haven't yet seen a solution to this. 

Hope you can help.  

Thank you, 

Anna

--
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-helpdesk+unsub...@googlegroups.com.
Image 1.png
Image 2.png
Image 3.png
ToImport3.xlsx
Image 4.png

Barry Demchak

unread,
Aug 3, 2016, 11:57:15 AM8/3/16
to cytoscape...@googlegroups.com

Hi, Anna –

 

Normally, Cytoscape would want to import a network, which would involve each row having a source and target node. Any other values on the row could be source node attributes, target node attributes, edge attributes, or values to be ignored.

 

As you say, the node list in your XLS is just a node list … which could be considered a list of source nodes without target nodes … and with all other values in a row being source node attributes.

 

If I set up the import that way (ID is a source node, name2 & type are source node attributes … see picture below), I get a decent enough network consisting of only nodes with attributes (see other picture below). Is this where you’re trying to go??

 

 

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.
For more options, visit https://groups.google.com/d/optout.

--

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.

image001.png
image002.png

Anna Weston

unread,
Aug 3, 2016, 12:05:55 PM8/3/16
to cytoscape...@googlegroups.com
Hi Barry,

Thank you for your help. At this stage I was just trying to achieve a network of nodes as I wanted to ensure I could get the import function to work. I’ve followed your instructions and that works perfectly! 

I will now create a xlsx file following your advice with each row having a source and target node so that I can start to build a network. 

Thanks again for your help and quick replies. 

Anna

On 3 Aug 2016, at 16:56, Barry Demchak <idekerlab...@gmail.com> wrote:

Hi, Anna –
 
Normally, Cytoscape would want to import a network, which would involve each row having a source and target node. Any other values on the row could be source node attributes, target node attributes, edge attributes, or values to be ignored.
 
As you say, the node list in your XLS is just a node list … which could be considered a list of source nodes without target nodes … and with all other values in a row being source node attributes.
 
If I set up the import that way (ID is a source node, name2 & type are source node attributes … see picture below), I get a decent enough network consisting of only nodes with attributes (see other picture below). Is this where you’re trying to go??
 
<image001.png>
 
<image002.png>

-- 
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/ZgUREyAQwJw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cytoscape-helpd...@googlegroups.com.

Barry Demchak

unread,
Aug 3, 2016, 12:06:36 PM8/3/16
to cytoscape...@googlegroups.com

Great … good luck!

Reply all
Reply to author
Forward
0 new messages