Importing network XL file works, but not "table file" with same "node XL file"

18 views
Skip to first unread message

compe...@gmail.com

unread,
Jan 7, 2019, 2:09:36 PM1/7/19
to cytoscape-helpdesk
Hello,

Sorry if this has already been posted, I searched for the answer but couldn't come up with one.

I'm discovering Cytoscape as I'd like to work on flows and node diagrams.

My aim is to generate "complex" views of a node graph using the same XL data.
Thus I'm trying to see how work import functions in Cytoscape.

I have for now a very simple XL file with 3 columns and a few lines of data :
ID (integer)
name (string)
type (string)

As you'd guess, these are only nodes I'd like to add to my (newly created empty) network for now.

I first tried "Import Table from file..." with "node table" option.
- The preview shows correctly my XL Data : nice!
- Finishing the import, columns with new names are added, BUT ROWS ARE EMPTY.

Weird. Tried multiple times changing my DATA, didn't work.

Then I find this topic:
https://groups.google.com/forum/#!msg/cytoscape-helpdesk/ZgUREyAQwJw/gheLqK5qCAAJ

I try the function "Import Network from file..." with my same XL file, and IT WORKS FINE.

Color me curious, there is no "error" or warning even in the "show tasks" function of Cytoscape in the first case.

Is this function (table from file) even still used?

Software: Cytoscape 3.7.0 & 3.7.1
Profile: IT Developer, App technical, functional & design knowledge

Alex Pico

unread,
Jan 7, 2019, 7:20:28 PM1/7/19
to cytoscape...@googlegroups.com
Yes. The main concepts of Cytoscape are: networks, tables and visual styles (and apps!).  You wanted to generate a network model from a file with a tabular format, so you use Import Network from File.  If you later on want to add more table data (e.g., to the Node Table of an existing network) then you would use the Import Table from File.  These functions are both very useful and commonly used. The confusion here was that your import file was a table! But you found the right path :)

 - Alex



--
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/c91113d8-0337-4513-b89b-333d8e2d0f21%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

compe...@gmail.com

unread,
Jan 8, 2019, 2:19:12 AM1/8/19
to cytoscape-helpdesk
Oh, OK, thanks Alex :). I understand better now.

Quick question, what happens if you add already existing values with an import? Does it update the existing one, or does it conflit and do nothing?

Thanks in advance!

Peter

 - Alex



To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpdesk+unsub...@googlegroups.com.

Alexander Pico

unread,
Jan 8, 2019, 12:04:51 PM1/8/19
to cytoscape...@googlegroups.com
Old value are overwritten with new ones. No warnings or conflicts. 

 - Alex
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.
Reply all
Reply to author
Forward
0 new messages