- Open Access
3DScapeCS: application of three dimensional, parallel, dynamic network visualization in Cytoscape
BMC Bioinformatics volume 14, Article number: 322 (2013)
The exponential growth of gigantic biological data from various sources, such as protein-protein interaction (PPI), genome sequences scaffolding, Mass spectrometry (MS) molecular networking and metabolic flux, demands an efficient way for better visualization and interpretation beyond the conventional, two-dimensional visualization tools.
We developed a 3D Cytoscape Client/Server (3DScapeCS) plugin, which adopted Cytoscape in interpreting different types of data, and UbiGraph for three-dimensional visualization. The extra dimension is useful in accommodating, visualizing, and distinguishing large-scale networks with multiple crossed connections in five case studies.
Evaluation on several experimental data using 3DScapeCS and its special features, including multilevel graph layout, time-course data animation, and parallel visualization has proven its usefulness in visualizing complex data and help to make insightful conclusions.
Cytoscape  is a free open source platform providing biological network analysis and two-dimensional (2D) visualization for biologists. With more than 172 registered plugins contributed by the community, it is very versatile in network applications, such as network importing, network integrating, inference customization, literature mining, topological clustering, functional enrichment, network comparison, and programmatic access . However, it lacks the capability of displaying the large-scale networks in three-dimensions (3D) or beyond. With the exponential growth of gigantic biological data deposited in the public domain, the extra space visualization would offer more flexibility for layered representation  and heterogeneous data visualization . Although a few applications are available for 3D network visualization, such as BioLayout , Wilmascope 3D , Arena3D , FORG3D , the lack of community support has hindered their widespread use. Tulip  features 3D display and a variety of plugins, but it is far less versatile as Cytoscape in biological studies. Moreover, some of them suffer performance drawbacks when displaying large networks (Table 1). Although there are Cytoscape’s 3D plugins using Processing library  and JOGL , they are still under development. There is also an approach using RCytoscape  and RGL to create 3D visualization for Cytoscape, but it is not well developed in terms of its layout performance and ease of use. Although the release of Cytoscape 3.0  claims that through its OSGi engine, it enables user to switch renderers in Cytoscape. However, graph manipulation and layout algorithms are both required to be changed while switching 2D to 3D, which means excessive override of Cytoscape core modules. Taking into consideration of the difficulties faced in implementation, adopting a light-weighted external renderer is a better choice. Moreover, C++ implementation is often superior in performance than Java when it comes to layout large graph with more than ten thousands nodes. Therefore we choose UbiGraph , which is a 3D visualization tool supporting up to eight POSIX threads and multilevel force-directed graph layout of high performance and aesthetic pleasure. We developed 3DScapeCS, a Cytoscape plugin providing three-dimensional, dynamic, parallel network visualization for Cytoscape in client-server (C/S) architecture (in Additional files 1 and 2). Despite criticism that developers favour in building 3D visualization tools rather than analyzing using such tools has arisen within the bioinformatics community . 3DScapeCS has undergone extensive testing among molecular chemistry, genomics and proteomics studies, which showcased as the following (in Additional file 3).
Visualization of three-dimensional networks
3DScapeCS converts an existed Cytoscape network to a 3D view as shown in Figure 1a. The conversion can retain almost all settings such as the colours, sizes, and shapes of all nodes as similar as those from the existing 2D view. The users can easily manipulate the 3D view by using mouse. Operations including rotation and zooming of the display have been implemented in UbiGraph. We have implemented network communication between UbiGraph and Cytoscape as well. On double-clicking a node in UbiGraph, its attributes will be shown in the Node/Edge Attribute Browser panel in Cytoscape (Figure 1b). A searching box is provided for user to search the nodes/edges by corresponding identifiers. Whenever the search succeeds, the node matched will be highlighted with a label in the 3D view (Additional file 4).
The layout algorithms are required to generate meaningful and aesthetic drawings of biological networks. The layout algorithm built in UbiGraph is force-directed based. It acts by balancing the repulsive force between nodes and attractive force from the edge. After several rounds of movement and annealing, it generates aesthetically pleasing graph layouts with all edges of nearly equal length. The force-directed layout algorithm implemented in Cytoscape has a complexity of O(N3) and low-quality local drawing , it is only suitable for networks containing up to several hundred nodes. Other global force-directed algorithms such as Fruchterman-Reingold  experience the same bottleneck. Therefore local force-directed algorithms such as Fast Multipole Multilevel Method (FM3)  and Multilevel layout algorithm  have been developed. Hereby we adopted the multilevel layout algorithm in UbiGraph for larger networks. In this approach, the network is partitioned into sub-networks. Only forces within the scope of sub-networks are calculated, so that the final graph layout can be obtained in O(NlogN) runtime. Therefore it will greatly reduce the duration required to complete three-dimensional layout, which is significantly helpful in visualization of large-scale networks (Figure 1c).
Time-course data animation
Cytoscape supports the mapping of gene expression data to node color, label, and border thickness. With VistaClara  or SpotXplore  plugin installed, the user can distinguish expression intensities from a heat map themed node colour scheme. VistaClara even creates an animated view of the network for displaying the changes over time in a series of experiments. In our implementation, users are able to explore expression data using VistaClara’s heat map scheme or user-defined color scheme (Figure 2). Moreover, time-course data can be attributed to node sizes or edge thickness, making it possible for visualizing various data types, such as data from metabolic flux analysis, with thicker edge representing larger flux, and vice versa (Figure 3). We also implemented motion network in 3DScapeCS, made it possible to study the changes over time or different conditions, such as mass spectral molecular networks (Figure 4).
3DScapeCS provides an approach for visualizing one network from multiple aspects by adopting parallel visualization. The Cytoscape network view can be simultaneously rendered in UbiGraph on multiple computer clients through network communication. Different clients can be set to visualize different aspects of the graph, either a reversal of perspective, or another time-point from a time-course animation. Unlike CytoscapeRPC , which use XML-RPC to modify networks in Cytoscape from clients, UbiGraph clients serve as XML-RPC servers in 3DScapeCS architecture. Therefore any changes made to the network view in Cytoscape, either change the size/colour of a node, or add/delete a node, can be reflected on all clients by synchronizing the network data between UbiGraph clients and Cytoscape.
Genome sequences scaffolding visualization
Next-generation sequencing (NGS) and third-generation sequencing technologies such as PacBio SMRT greatly facilitated whole genome sequencing. However, complex genomic structures that cause sequence bias even with high genomic coverage and repeated sequences that may cause gaps in assembly still hamper gap closure. Determining the relationships between contigs or scaffolds is therefore very important. Showing straightforward graph-based relationships of contigs in Cytoscape rather than tables is more intuitive, and will help planning for further PCR validation. ContigScape  is a Cytoscape plugin for helping visualizing genome scaffolds. However, complex contig relationships in highly repetitive regions are hard to resolve since they have many intersections. By converting such network into three-dimensional graph, the relationships between contigs become easier to be identified. In the project of Ralstonia sp. genome scaffolding , three repetitive contigs have several connections which are hard to be distinguished, while nodes are well dispersed and their relationships with other contigs are much clearer in corresponding 3D view (Figure 5).
Dynamic visualization of metabolic flux data
Flux balance analysis (FBA) is a powerful tool in simulating metabolism in genome scale reconstructions of metabolic networks . Dynamic exploration of flux data will give user an intuitive guidance on metabolic changes. In 3DscapeCS, metabolic flux data visualization can either be reflected in node size (reaction network), or edge thickness (substrate-product network). Here we use E. coli’s energy metabolism model . To reduce network complexity, we only show relationship with flux distribution greater than zero. Node sizes are rendered according to their flux distribution, so that reactions with greater flux can be easily identified (Additional file 5). We compare the reaction network between the initial state (Figure 6b) and the simulated state (Figure 6c). The reactions with changed rate are easier to be identified in the 3D view due to the nodes in the centre of the network are dispersed in the 3D space, while the nodes in the 2D view are overlaid with each other. The evaluations with substrate-product network were carried out between 3DScapeCS and FluxMap , which is a VANTED  add-on for the visual exploration of metabolic flux (Additional file 6). Although it features time-point simulation or conditions iteration in flux visualization, it lacks the “auto-play” functionality as 3DScapeCS does. Simulation of flux knockout example of glycolysis pathway in FluxMap example package shows that 3DScapeCS is useful in showing metabolic flux changes between different genotypes (Figure 3).
Mass Spectrometry (MS) molecular network visualization
Molecular network has been used for the analysis of MS/MS data and provide a new perspective to study microbial natural products . However, an efficient approach needs attention to interpret the similarities or differences between several conditions in biological experiments. Nguyen D. et al. has applied Cytoscape to visualize MS network generated from several MS experiments . Here we present an example of the application 3DScapeCS in monitoring the changes of metabolomics of the human pathogen C. albicans after the treatments using different doses of avermetin, a potent antifungal natural product (Ren et al., unpublished data). In this experiment, we treated C. albicans with 400 (Figure 4a), 100 (Figure 4b), 25 (Figure 4c), 6.25 (Figure 4d), and 1.5625 (Figure 4e) μg/mL of avermectin, respectively. Meanwhile, the pathogen treated with DMSO was used as negative control (Figure 4f). The monitoring of the metabolites would help in identifying the pathway affected by avermectin and subsequently interprets the medicinal mechanism of avermectin. A motion graph varies in topology enables dynamic exploration of molecule changes at different conditions. This example is included in a saved Cytoscape session named MS.cys (in Additional file 3). User needs to export the session into SIF-format network and the filenames in node attributes into Cytoscape node attributes file. Then use separate.pl to divide the SIF-format network into several sub-networks according to their filename attributes provided. The generated SIF -format networks from A to F are at different dose treatments. Using “Order Networks”, user makes them a motion network (Figure 4). The topological changes are useful in distinguishing different molecules produced at different dose treatments (Additional file 7). The parallel visualization on multiple monitors and animation iterating all the networks also facilitate more comprehensive comparison. As a result, the avermectin treated cells produced more molecules compared with negative control (Figure 4f), and the molecules were gradually reduced along with the dose decreased, indicating that avermectin affected some pathways of C. albicans to produce or accumulate different molecules. Further identification of the different molecules from the node can help us to find the targeted pathway of avermectin.
Detecting bubbles in De Bruijn graph
De Bruijn graphs  are very common among Next-generation sequencing tools such as Velvet , ALLPATHS , ABySS , Ray  and SOAPdenovo . Assembly programs indexes reads in short words (k-mers). Each node represents a series of overlapped k-mers in de Bruijn graph, while arc represents their connection. Paths traversing the graph are joined into contigs. Due to the existence of biological variable and erroneous k-mers, de Bruijn graph often forms bubbles, which is defined as several similar paths sharing the same start node and end node . Bubbles are hard to resolve by de novo assemblers, and therefore extension often ends up with an early termination in paths containing bubbles. In order to distinguish such termination from sequencing gaps, it is important in assessing the de Bruijn structure and detecting the bubbles. Here we evaluated a de novo assembly graph of Streptomyces avermitilis (Zhuo et al., unpublished data), which was assembled using Velvet v1.2. We converted the LastGraph produced by Velvet into SIF-format network with 1,891 nodes and 1,921 edges using a Perl script debruijn.pl (in Additional file 3). While the two-dimensional network visualization failed to show the bubbles between nodes after force-directed layout in Cytoscape, the three-dimensional visualization indicates there are three bubbles in the highlighted regions (Figure 7).
Three-dimensional visualization provides novel insights for Cytoscape. With time-course, colour, size, shape customization, 3DScapeCS can support up to seven dimensional data visualization, making it useful in presenting large-scale complex data. Although external renderers such as UbiGraph can add 3D functionalities to Cytoscape, the operations of network are limited in UbiGraph. For example, user can neither drag vertices or edges in the graph to set locations, nor set the parameters of the multilevel layout algorithm, which make it less effective in heterogeneous 3D data visualization. Therefore, in the future, a more powerful renderer featured with more layouts and subcellular localization networks, such as neuronal networks, should be implemented. Moreover, mobile devices such as iPad or Android Pad, which can be manipulated using fingers and gestures, are more suitable to manipulate 3D view. So it is also desirable to implement renderers on those platforms for wireless parallel visualization.
We have integrated UbiGraph and Cytoscape in 3DScapeCS. The 3D perspective not only guarantees user a greater experience in visualization, but also offers more insight into Cytoscape networks. Parallel motion graph is useful in visualizing data obtained with different conditions, as well as different aspects in a single experiment. Such functionalities give full play to their strength on a three-dimensional platform. Therefore 3DScapeCS has more advantages in large and/or complex network visualization as the study cases presented in previous paragraphs.
Availability and requirements
Project name: 3DScapeCS
Project home page: http://scape3d.sourceforge.net/
Operating system(s): Platform-independent.
Programming language: Java
Other requirements: Cytoscape v2.8, UbiGraph needs to be started as its renderer.
License: Lesser General Public License (LGPL).
Any restrictions to use by non-academics: None.
Shannon P, Markiel A, Ozier O, Baliga NS, Wang JT, Ramage D, Amin N, Schwikowski B, Ideker T: Cytoscape: a software environment for integrated models of biomolecular interaction networks. Genome Res. 2003, 13 (11): 2498-2504. 10.1101/gr.1239303.
Saito R, Smoot ME, Ono K, Ruscheinski J, Wang PL, Lotia S, Pico AR, Bader GD, Ideker T: A travel guide to Cytoscape plugins. Nat Methods. 2012, 9 (11): 1069-1076. 10.1038/nmeth.2212.
Pettersen EF, Goddard TD, Huang CC, Couch GS, Greenblatt DM, Meng EC, Ferrin TE: UCSF Chimera-a visualization system for exploratory research and analysis. J Comput Chem. 2004, 25 (13): 1605-1612. 10.1002/jcc.20084.
Peng H, Ruan Z, Long F, Simpson JH, Myers EW: V3D enables real-time 3D visualization and quantitative analysis of large-scale biological image data sets. Nat Biotechnol. 2010, 28 (4): 348-353. 10.1038/nbt.1612.
Enright AJ, Ouzounis CA: BioLayout-an automatic graph layout algorithm for similarity visualization. Bioinformatics. 2001, 17 (9): 853-854. 10.1093/bioinformatics/17.9.853.
Dwyer T, Eckersley P: WilmaScope - An interactive 3D graph visualisation system. Lect Notes Comput Sc. 2002, 2265: 442-443. 10.1007/3-540-45848-4_37.
Pavlopoulos GA, O'Donoghue SI, Satagopam VP, Soldatos TG, Pafilis E, Schneider R: Arena3D: visualization of biological networks in 3D. BMC Syst Biol. 2008, 2: 104-10.1186/1752-0509-2-104.
Paananen J, Wong G: FORG3D: force-directed 3D graph editor for visualization of integrated genome scale data. BMC Syst Biol. 2009, 3: 26-10.1186/1752-0509-3-26.
Auber D: Tulip - A huge graph visualization framework. Math Visual. 2003, 105-126.
Processing.org. [http://processing.org/], Accessed October 8, 2013
JOGL - Java Binding for the OpenGL API. [http://jogamp.org/jogl/www/], Accessed October 8, 2013
Shannon PT, Grimes M, Kutlu B, Bot JJ, Galas DJ: RCytoscape: tools for exploratory network analysis. BMC Bioinformatics. 2013, 14 (1): 217-10.1186/1471-2105-14-217.
Welcome to Cytoscape 3. [http://www.cytoscape.org/cy3.html], Accessed October 8, 2013
Veldhuizen TL: Dynamic multilevel graph visualization. Eprint arXiv:cs.GR/07121549. 2007
Bhavnani SK, Ganesan A, Hall T, Maslowski E, Eichinger F, Martini S, Saxman P, Bellala G, Kretzler M: Discovering hidden relationships between renal diseases and regulated genes through 3D network visualizations. BMC Res Notes. 2010, 3: 296-10.1186/1756-0500-3-296.
Force-directed graph drawing. [http://en.wikipedia.org/wiki/Force-directed_graph_drawing], Accessed October 8, 2013
Fruchterman TMJ, Reingold EM: Graph drawing by force-directed placement. Software Pract Exper. 1991, 21 (11): 1129-1164. 10.1002/spe.4380211102.
Hachul S, Jünger M: Drawing large graphs with a potential-field-based multilevel algorithm. Proc. 12th Int. Symp. on Graph Drawing, volume 3383 of LNCS. 2005, Heidelberg: Springer-Verlag, 285-295.
Kincaid R, Kuchinsky A, Creech M: VistaClara: an expression browser plug-in for Cytoscape. Bioinformatics. 2008, 24 (18): 2112-2114. 10.1093/bioinformatics/btn368.
Westenberg MA, Roerdink JB, Kuipers OP, van Hijum SA: SpotXplore: a Cytoscape plugin for visual exploration of hotspot expression in gene regulatory networks. Bioinformatics. 2010, 26 (22): 2922-2923. 10.1093/bioinformatics/btq535.
Bot JJ, Reinders MJ: CytoscapeRPC: a plugin to create, modify and query Cytoscape networks from scripting languages. Bioinformatics. 2011, 27 (17): 2451-2452. 10.1093/bioinformatics/btr388.
Tang B, Wang Q, Yang M, Xie F, Zhu Y, Zhuo Y, Wang S, Gao H, Ding X, Zhang L, et al: ContigScape: a Cytoscape plugin facilitating microbial genome gap closing. BMC Genomics. 2013, 14: 289-10.1186/1471-2164-14-289.
Flux balance analysis. [http://en.wikipedia.org/wiki/Flux_balance_analysis], Accessed October 8, 2013
Xu Z, Sun X, Sun J: Construction and analysis of the model of energy metabolism in E. coli. PLoS One. 2013, 8 (1): e55137-10.1371/journal.pone.0055137.
Rohn H, Hartmann A, Junker A, Junker BH, Schreiber F: FluxMap: a VANTED add-on for the visual exploration of flux distributions in biological networks. BMC Syst Biol. 2012, 6: 33-10.1186/1752-0509-6-33.
Junker BH, Klukas C, Schreiber F: VANTED: a system for advanced data analysis and visualization in the context of biological networks. BMC Bioinformatics. 2006, 7: 109-10.1186/1471-2105-7-109.
Watrous J, Roach P, Alexandrov T, Heath BS, Yang JY, Kersten RD, van der Voort M, Pogliano K, Gross H, Raaijmakers JM, et al: Mass spectral molecular networking of living microbial colonies. Proc Natl Acad Sci U S A. 2012, 109 (26): E1743-1752. 10.1073/pnas.1203689109.
Nguyen DD, Wu CH, Moree WJ, Lamsa A, Medema MH, Zhao X, Gavilan RG, Aparicio M, Atencio L, Jackson C, et al: MS/MS networking guided analysis of molecule and gene cluster families. Proc Natl Acad Sci U S A. 2013, 110 (28): E2611-2620. 10.1073/pnas.1303471110.
Pevzner PA, Tang H, Waterman MS: An Eulerian path approach to DNA fragment assembly. Proc Natl Acad Sci U S A. 2001, 98 (17): 9748-9753. 10.1073/pnas.171285098.
Zerbino DR, Birney E: Velvet: algorithms for de novo short read assembly using de Bruijn graphs. Genome Res. 2008, 18 (5): 821-829. 10.1101/gr.074492.107.
Butler J, MacCallum I, Kleber M, Shlyakhter IA, Belmonte MK, Lander ES, Nusbaum C, Jaffe DB: ALLPATHS: de novo assembly of whole-genome shotgun microreads. Genome Res. 2008, 18 (5): 810-820. 10.1101/gr.7337908.
Simpson JT, Wong K, Jackman SD, Schein JE, Jones SJ, Birol I: ABySS: a parallel assembler for short read sequence data. Genome Res. 2009, 19 (6): 1117-1123. 10.1101/gr.089532.108.
Boisvert S, Laviolette F, Corbeil J: Ray: simultaneous assembly of reads from a mix of high-throughput sequencing technologies. J Comput Biol. 2010, 17 (11): 1519-1533. 10.1089/cmb.2009.0238.
Li R, Zhu H, Ruan J, Qian W, Fang X, Shi Z, Li Y, Li S, Shan G, Kristiansen K, et al: De novo assembly of human genomes with massively parallel short read sequencing. Genome Res. 2010, 20 (2): 265-272. 10.1101/gr.097261.109.
This work was supported in part by grants from the Ministry of Science and Technology of China (2013CB734004) and the National Natural Science Foundation of China (31100075, 81102362, 31170095, 31000004). LXZ is an Awardee for National Distinguished Young Scholar Program in China. We appreciate Dr. Pieter C. Dorrestein for providing Mass Spectrometry instruments in UCSD.
The authors declare that they have no competing interests.
QW conceived, designed and implemented the software and the case studies, tested the software and drafted the manuscript. BT, LFS and XTL tested the software, suggested modifications, performed the case studies, and contributed in drafting the manuscript. BR, QL, FX, YZ and LXZ contributed in drafting the manuscript. LXZ also supervised this project as a whole. All authors have read, revised and approved the manuscript.
Electronic supplementary material
Authors’ original submitted files for images
Below are the links to the authors’ original submitted files for images.
About this article
Cite this article
Wang, Q., Tang, B., Song, L. et al. 3DScapeCS: application of three dimensional, parallel, dynamic network visualization in Cytoscape. BMC Bioinformatics 14, 322 (2013). https://doi.org/10.1186/1471-2105-14-322
- Flux Balance Analysis
- Network Visualization
- Layout Algorithm
- Graph Layout
- Motion Graph