Creating csv with timeline & geolayout

Asked by Loretta Morris

Hello! I am new to Gephi and have no experience with coding. I have been trying to use all my data with csv files. Is it possible to create a spatiotemporal view using csv, and if so, how?

I am trying to show how authors have collaborated using different MRI scans over time and at different institutions around the world. My columns would be for nodes: Nodes Id Label MRItype Year Latitude Longitude; and for edges: Source Name_Source Target Targ_Name Type Id Label Weight.

Ideally, I'd love to make the MRItype, Year, Latitude, Longitude, and Weight all dynamic.

Thanks in advance! Gephi is outstanding!

Best,

Loretta

Question information

Language:
English Edit question
Status:
Solved
For:
Gephi Edit question
Assignee:
No assignee Edit question
Solved by:
Loretta Morris
Solved:
Last query:
Last reply:
Revision history for this message
Sébastien Heymann (sebastien.heymann) said :
#1
Revision history for this message
Loretta Morris (loretta-morris) said :
#2

Thank you. I opened the empty-dynamic.gexf file and then imported my csv file. I am unable to get the Time Interval to work with Latitude and Longitude. From what I gathered from here (http://forum.gephi.org/viewtopic.php?t=1668), I should make my Year, latitude and longitude look like this?

"<[2004.0, 2008.0]; [2009.0, 2011.0]>" "<[2004.0, 2008.0, 50.701024]; [2009.0, 2011.0, 42.359242]>" "<[2004.0, 2008.0, 7.10364]; [2009.0, 2011.0, 42.359242]>"

Also, when I import the csv, I make the column Year as a time interval, but the column in Gephi comes up as blank?

I am very confused.

Revision history for this message
Eduardo Ramos (eduramiba) said :
#3

Hi,
Yes, your data should work fine, too.

At least a csv file like the following works right:
id year lat long
1 "<[2004.0, 2008.0]; [2009.0, 2011.0]>" "<[2004.0, 2008.0, 50.701024]; [2009.0, 2011.0, 42.359242]>" "<[2004.0, 2008.0, 7.10364]; [2009.0, 2011.0, 42.359242]>"

http://i.imgur.com/rfvl5.png

Make sure to choose space as separator and the year column type as Time Interval.
Also make sure to use latest Gephi version with updates.

Revision history for this message
Loretta Morris (loretta-morris) said :
#4

I am using Gephi 0.8.1 beta, no updates needed.

If I choose space as a separator, it does not give me an option to separate the columns - only using comma as a separator lets me move forward in the way described. When I choose the options in the picture, all 3 fields (year, lat, long) come up as blanks and I cannot enable timeline.

Just so I can make sure I am doing the steps right:

Open Gephi, run empty-dynamic.gexf, import spreadsheet under data laboratory just like the pic you sent.

test csv file: http://i.imgur.com/9TBxX.png
after import: http://i.imgur.com/WZRfe.png

Revision history for this message
Eduardo Ramos (eduramiba) said :
#5

Oh, you use excel to create the file.

Then don't put double quotes in excel, it will put them for you where necessary.
Also, it uses semicolon as separator.

Make sure you see this in first step.
http://i.imgur.com/Npr2e.png

Revision history for this message
Loretta Morris (loretta-morris) said :
#6

Again, the comma is the only option that will allow me to move forward the correct way. Removing the double quotes worked, but the lat and long columns cannot work with Geolayout as a DynamicFloat. When I changed it to DynamicDouble, it worked okay. I am able to run the Geolayout and enable timeline.

However, I cannot hit play in Timeline. Why would that be? The bounds and the time frame seem okay.

Thank you!

Revision history for this message
Eduardo Ramos (eduramiba) said :
#7

Nice. I guess then the separator depends on excel version/configuration.

To use play, you have to reduce the timeline window so it can move (drag the ends of it).

Revision history for this message
Loretta Morris (loretta-morris) said :
#8

Yes! Great, thank you. It is working wonderfully now.

Thanks again!