next up previous contents
Next: Comparisons between networks Up: Network Analysis Tools (NeAT) Previous: Introduction   Contents

Subsections

Network visualization and format conversion

Introduction

Network visualization

To help the scientists apprehending their interest network, it is sometimes very useful to visualize them. Networks are generally represented by a set of dots (or of boxes) which represents its nodes that are linked via lines (the edges) or arows (arcs in the case of directed graphs). The nodes and the edges may present a label and / or a weight. The node label is generally indicated in the node box and the edge label is often placed on the line.

NeAT contains some facilities to represent networks. It contains its own visualization software (display-graph) that will be described in the following. Moreover, it allows the conversion of the graph into formats that may be used by some visualisation tools like Cytoscape ([28], http://www.cytoscape.org), yED (http://www.yworks.com/products/yed/)or VisANT ([11], http://visant.bu.edu/).

Hereafter, we describe briefly some of the major formats used for graph description.

Graph formats

Incompatibility between file formats is a constant problem in bioinformatics. In order to facilitate the use of the NeAT website, most of our tools support several among the most popular formats used to describe networks.

Visualisation of a co-expression network

Study case

In this demonstration, we will show you how to visualize a network using some popular network visualization tools. This network we will study consist in the top scoring edges of the yeast co-expression network included in the integrative database String [35]. This undirected weighted networks contains 537 nodes representing genes and 4801 edges. An edge between two nodes means that they are co-expressed. The weight expresses at which level both genes are co-expressed. We will explain how to display this network with NeAT, Cytoscape, yED and VisANT. As Cytoscape and yED are not online tools, we will only describe their utilization in the command-line section.

Protocol for the web server

Format conversion and layout calculation

  1. In the NeATmenu, select the command format conversion / layout calculation.

    In the right panel, you should now see a form entitled ``convert-graph''.

  2. Click on the link DEMO.

    The form is now filled with a graph in the tab-delimited format, and the parameters have been set up to their appropriate value for the demonstration, i.e., the network will be converted from tab-delimited to GML format, the source node column is 1, the target column is 2 and the weight column is 3.

    The option Calculate the layout of the nodes (only relevant for GML output may also be chosen, otherwise the nodes will all be in diagonal and the resulting graphic will not be very instructive.

    If the edges present a weight, convert-graph is able to represent the weight of the edges by computing a color gradient proportional to edge weights and coloring the edges according to it. There are five different color gradients : blue, red, green, grey and yellow to red. The darker (or the more colored) it is, the higher the weight. Moreover convert-graph can also change the width of the edge proportionnally to its weight. To this, we must choose a color gradient for the Edge color intensity proportional to the weight and the option Edge width proportional to the weight of the edge must be checked (which is automatically the case with the demonstration).

  3. Click on the button GO.

    The resulting graph in GML format is available as an HTML link. Right clink on the link and save it with name string_coexpression.gml.

Visualization using NeAT

  1. In the Next Step pannel, click on Display the graph.

    The form of display-graph is displayed. By default, the figure output format is jpeg, change it to png which gives a better resolution. NeAT also allow the postscript format.

  2. Uncheck Calculate the layout of the nodes (mandatory for all input format except GML) as convert-graph already computed it.
  3. Check Edge width proportional to the weight of the edges
  4. Click on the GO button.

    The figure is available by clicking on the HTML link. Clicking a the link leads to a static figure representing the network.

Visualization using VisANT

  1. After the step Format conversion and layout calculation, click on the Load in VisANT

    A page is displayed. Three links are available

  2. Click on the logo of VisANT

    The VisANT applet is loaded.

  3. Accept the authentification certifate.

Protocol for the command-line tools

Format conversion and layout calculation

If you have installed a stand-alone version of the NeAT distribution, you can use the programs convert-graph and display-graph on the command-line. This requires to be familiar with the Unix shell interface. If you don't have the stand-alone tools, you can skip this section and read the next section (Interpretation of the results). To visualize the networks with yED, VisANT or Cytoscape, you must of course install them on your computer.

  1. First let us download the network file string_coex_simple.tab from the NeAT tutorial download page : http://rsat.scmbb.ulb.ac.be/rsat/data/neat_tuto_data/
  2. In this first step, we will convert the tab delimited String network that we just downloaded into a GML file by using this command. We compute the layout of the nodes. Moreover, we compute an edge width and an color proportional to the weight on the edge.
    	convert-graph 	-from tab -to gml -wcol 3 -i string_coex_simple.tab 
    			-o string_coex_simple.gml -layout -ewidth -wcol 3 -ecolors fire
    

Visualization using NeAT

Use the following command to create a graph using the NeAT display-graph program.
	display-graph 	-in_format gml -out_format png -i string_coex_simple.gml
			-o string_coex_simple.png -ewidth

Visualization using Cytoscape (version 2.3)

  1. Open Cytoscape
  2. Click on File $>$ Import $>$ Network... $>$ Select
  3. Select the file string_coex_simple.gml If the graph contains more than 500 nodes, it will not be displayed immediately. Right click on the name of the graph file in the Cytopanel 1 and select Create view....

Visualization using yED (version 3)

  1. Open yED
  2. Click on File $>$ Import
  3. Select the file string_coex_simple.gml

    As NeAT GML converter add edge labels of the type nodeName1_nodeName2 for unweighted or unlabeled graph, you may need to remove the edge label for a better visibility.

  4. Click on one edge (random)

    The edge you clicked on is now selected.

  5. Press Ctrl+A

    All edges are now selected.

  6. In the Property view (Right of the screen), in the label part, uncheck the visible option.


next up previous contents
Next: Comparisons between networks Up: Network Analysis Tools (NeAT) Previous: Introduction   Contents
RSAT 2009-09-04