specifying node position and color in data file

Get help with your data
Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
jbrener
Posts:4
Joined:02 Nov 2013 05:21
Location:United States
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
specifying node position and color in data file

Post by jbrener » 20 Dec 2013 18:45

I am trying to use Gephi to visualize differences between samples in the pathways between a fixed set of nodes. At the moment I'm doing this by dragging nodes into their desired positions and then coloring them while in "Overview". It would be better if I could specify node id's, positions and colors in the data file and thereby standardize the graphs for the different samples and be able to skip the manual adjustments. The nodes should always occupy the same positions in the graph and have the same colors and id's but the edges are different from one sample to the next. I'd be grateful if someone could post a small sample of a text data file readable by Gephi in which node position and color are specified. Thanks

francis_flavin
Posts:68
Joined:21 Jan 2012 18:34
Location:Washington, DC, USA
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: specifying node position and color in data file

Post by francis_flavin » 22 Dec 2013 21:01

There is a plug-in for the Data Library that will help you.

You can find it here:

https://marketplace.gephi.org/plugin/recast-column/

Once you install it, if you go to the "More Actions" menu button, you'll see a couple of options in the "Group 3" category called "Recast column," "Get standart," and "Set standart."

I've found this plug-in to be enormously valuable because it allows you use Gephi tools to assign colors, and 3-space coordinates in a layout, and then capture those using the "Get standart" function. Or, you can generate your own color values or 3-space coordinate values using your own tools or algorithms and then, using "Set standart," you can make Gephi recognize them.

This is a wonderful plugin (thanks, Taras Klaskovsky!), and I hope you find it useful, too.

jbrener
Posts:4
Joined:02 Nov 2013 05:21
Location:United States
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: specifying node position and color in data file

Post by jbrener » 22 Dec 2013 21:48

Thanks very much for the useful suggestion Francis_Flavin. In the meantime I have started to rewrite my data extraction program so that it casts the data to be input to Gephi in GDF format (https://gephi.org/users/supported-graph ... df-format/). This seems to do the trick.

Post Reply
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable