iview: an interactive WebGL visualizer for protein-ligand complex
BMC Bioinformatics volume 15, Article number: 56 (2014)
Visualization of protein-ligand complex plays an important role in elaborating protein-ligand interactions and aiding novel drug design. Most existing web visualizers either rely on slow software rendering, or lack virtual reality support. The vital feature of macromolecular surface construction is also unavailable.
We have developed iview, an easy-to-use interactive WebGL visualizer of protein-ligand complex. It exploits hardware acceleration rather than software rendering. It features three special effects in virtual reality settings, namely anaglyph, parallax barrier and oculus rift, resulting in visually appealing identification of intermolecular interactions. It supports four surface representations including Van der Waals surface, solvent excluded surface, solvent accessible surface and molecular surface. Moreover, based on the feature-rich version of iview, we have also developed a neat and tailor-made version specifically for our istar web platform for protein-ligand docking purpose. This demonstrates the excellent portability of iview.
Using innovative 3D techniques, we provide a user friendly visualizer that is not intended to compete with professional visualizers, but to enable easy accessibility and platform independence.
Visualization of protein-ligand complex plays an important role in elaborating protein-ligand interactions and aiding novel drug design. To date, dozens of visualization tools already exist. VMD , PyMOL (http://www.pymol.org) and Chimera  are very well-known and highly cited. They can interpret multiple file formats and generate multiple representations to supply precise and powerful control. AutoDockTools4  provides native support for the PDBQT file format, which is widely used in various protein-ligand docking software such as AutoDock , AutoDock Vina , and our idock . We also developed our own method  to visualize structures in virtual reality settings and employ fragment-based de novo ligand design strategy for interactive drug design. PoseView  and LigPlot+ , on the other hand, plot 2D diagrams of protein-ligand interactions from 3D coordinates.
To address the above obstacles, we have developed iview, an interactive WebGL visualizer of protein-ligand complex, featuring three special effects in virtual reality settings and four surface representations (Table 1). Furthermore, we show that iview can be easily modified to adapt to different applications. As an application example, we have recently developed a web platform called istar  to automate large-scale protein-ligand docking using our idock . Refactored from the feature-rich version of iview, we have also developed tailor-made version specifically for visualizing docking input data and output results of user-submitted jobs.
iview is refactored from GLmol 0.47, using three.js as its primary 3D engine with antialiasing support. It is based on WebGL canvas and can be easily integrated into existing HTML5 web pages to display molecular models without requiring Java or browser plugins. It loads a protein-ligand structure from the PDB (Protein Data Bank)  as its data source via a RESTful interface. It renders four standard representations of primary structure, namely line, stick, ball & stick and sphere, and five standard representations of secondary structure, namely ribbon, strand, cylinder & plate, C alpha trace and B factor tube. It colors the structure by either atom spectrum, protein chain, protein secondary structure, B factor, residue name, residue polarity, or atom type, by setting the vertex colors of the geometry object of the corresponding representation. It supports user interactions including rotation, translation, zooming and slab with mouse or hand touch manipulation. It provides both perspective and orthographic cameras, and anaglyph, parallax barrier and oculus rift effects from three.js examples for use in a virtual reality environment.
It is worthwhile to highlight that iview performs all parsing and rendering in the client browser, without any dependency on server side at all, ensuring the data privacy is maintained. This is unlike ChemDoodle Web Components, some of whose functions send data to a dedicated server for processing and wait for retrieval of results.
The differences between iview and GLmol are listed in the Additional file 1.
We take as example the CCR5 chemokine receptor-HIV entry inhibitor maraviroc complex  (PDB code: 4MBS).
Figure 1 shows the human CCR5 secondary structure rendered as ribbon, and the ligands rendered as sphere.
Figure 2 shows the anaglyph effect in a virtual reality environment. When users wear a spectacle with special filters on both sides, the disparity between two superimposed molecules creates a perception of depth, leading to visually more appealing identification of intermolecular interactions. The parallax barrier and oculus rift effects are illustrated in the Additional files 2 and 3.
We have successfully tested iview in Chrome 30, Firefox 25, Safari 6.1 and Opera 17. Support for IE 11 is experimental because gl_FrontFacing is unsupported in IE 11. Refer to http://caniuse.com/webgl, for compatibility of WebGL support in desktop and mobile browsers.
We emphasize portability and usability, and illustrate that iview can be easily modified to suit one’s particular application, given that iview is free and open source under a permissive license. We take protein-ligand docking as an example. Based on the feature-rich version of iview, our tailor-made version specifically for idock jobs cleans up many dispensable functions, enabling a very neat interface. It only retains the rendering of primary structure of protein and ligand, and the construction of protein surface. Most importantly, it implements new features especially for protein-ligand docking purpose.
In the input phase of a docking job, it merely requires a PDB file, which can be obtained either from the PDB database  or via homology modeling, and then constructs the protein surface asynchronously in a separate web worker to keep the web page responsive. It automatically detects a binding site from the largest co-crystallized ligand first by finding the smallest cubic box that covers the entire ligand and then by extending the box by 50% in all the three dimensions in order to reserve space for conformational sampling. In case of non-existence of co-crystallized ligand, the binding site is defaulted to the geometric center of the protein. The binding site is visually depicted in the form of a cubic box whose center and size can be manually adjusted by users in real time.
In the output phase of a docking job, it displays the user-supplied cubic box for users to confirm that the predicted ligand conformations do fall inside the desired binding site. Other than PDB format, its parsers are capable of parsing a protein and multiple top hit ligands in PDBQT format used by idock. It displays the top hit ligand IDs in a horizontally scrollable row and provides a straightforward way to switch ligands easily through a button group. It has built-in support for putative intermolecular hydrogen bond detection by finding hydrogen bond donors and acceptors from protein and ligand and setting the distance threshold to 3.5Å. It automatically annotates important atoms, like those involving in intermolecular hydrogen bonds, by placing labels next to the corresponding atoms in the canvas. It lists the docking result files, predicted free energy and binding affinity values, molecular properties, SMILES representation, compound suppliers and annotations, and putative hydrogen bond positions and their lengths, in order to give users a quick overview of the top hit ligands and assist them in making decisions of which compounds to purchase for subsequent wet-lab experiments (Figure 4).
We have designed and developed iview to be a simple and straightforward way to visualize protein-ligand complex. It enables non-experts to quickly elucidate protein-ligand interactions in a 3D manner. Furthermore, iview is free and open source, and can be easily integrated into any bioinformatics application that requires interactive protein-ligand visualization.
Availability and requirements
Project name: iview
Project home page: http://istar.cse.cuhk.edu.hk/iview
Operating system: Platform independent
Other requirements: Browser and graphics card with WebGL capability
License: Apache License 2.0
Humphrey W, Dalke A, Schulten K: VMD: visual molecular dynamics. J Mol Graph. 1996, 14 (1): 33-38. 10.1016/0263-7855(96)00018-5.
Pettersen EF, Goddard TD, Huang CC, Couch GS, Greenblatt D. M, 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.
Morris GM, Huey R, Lindstrom W, Sanner MF, Belew RK, Goodsell DS, Olson AJ: AutoDock4 and AutoDockTools4: automated docking with selective receptor flexibility. J Comput Chem. 2009, 30 (16): 2785-2791. 10.1002/jcc.21256.
Trott O, Olson AJ: AutoDock Vina: improving the speed and accuracy of docking with a new scoring function, efficient optimization, and multithreading. J Comput Chem. 2010, 31 (2): 455-461.
Li H, Leung K-S, Wong M-H: idock: a multithreaded virtual screening tool for flexible ligand docking. 2012 IEEE Symposium on Computational Intelligence in Bioinformatics and Computational Biology (CIBCB). 2012, San Diego, California, USA: IEEE, 77-84. [http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=6217214]
Tse C-M, Li H, Leung K-S, Lee K-H, Wong M-H: Interactive drug design in virtual reality. 15th International Conference on Information Visualisation (IV). 2011, London, UK: IEEE, 226-231. [http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=6004005]
Stierand K, Rarey M: PoseView - molecular interaction patterns at a glance. J Cheminform. 2010, 2: 50-10.1186/1758-2946-2-S1-P50.
Laskowski RA, Swindells MB: LigPlot+: multiple ligand-protein interaction diagrams for drug discovery. J Chem Inform Modeling. 2011, 51 (10): 2778-2786.
Kasahara K, Kinoshita K: GIANT: pattern analysis of molecular interactions in 3D structures of protein-small ligand complexes. BMC Bioinformatics. 2014, 15 (1): 12-10.1186/1471-2105-15-12.
Hanson RM, Prilusky J, Renjian Z, Nakane T, Sussman JL: JSmol and the next-generation web-based representation of 3D molecular structure as applied to Proteopedia. Isr J Chem. 2013, 53 (3–4): 207-216.
Xu D, Zhang Y: Generating triangulated macromolecular surfaces by Euclidean distance transform. PLoS ONE. 2009, 4 (12): 8140-10.1371/journal.pone.0008140.
Xu D, Li H, Zhang Y: Fast and accurate calculation of protein depth by Euclidean distance transform. Research in Computational Molecular Biology, vol. 7821, pp. 304–316. Springer: Berlin;. 2013
Callieri M, Andrei RM, Benedetto MD, Zoppè M, Scopigno R: Visualization methods for molecular studies on the web platform. Proceedings of the 15th International Conference on Web 3D Technology. 2010, New York, NY, USA: ACM, 117-126. [http://dl.acm.org/citation.cfm?id=1836067]
Li H, Leung K-S, Ballester PJ, Wong M-H: istar: a web platform for large-scale protein-ligand docking. PLoS ONE. 2014, 9 (1): 85678-10.1371/journal.pone.0085678.
Rose PW, Beran B, Bi C, Bluhm WF, Dimitropoulos D, Goodsell DS, Prlic A, Quesada M, Quinn GB, Westbrook JD, Young J, Yukich B, Zardecki C, Berman HM, Bourne PE: The RCSB Protein Data Bank: redesigned web site and web services. Nucleic Acids Res. 2011, 39 (suppl 1): 392-401.
Tan Q, Zhu Y, Li J, Chen Z, Han GW, Kufareva I, Li T, Ma L, Fenalti G, Li J, Zhang W, Xie X, Yang H, Jiang H, Cherezov V, Liu H, Stevens RC, Zhao Q, Wu B: Structure of the CCR5 Chemokine receptor-HIV entry inhibitor Maraviroc complex. Science. 2013, 341 (6152): 1387-1390. 10.1126/science.1241475.
Takanori Nakane thanks Japan Society for the Promotion of Science (JSPS) for scholarship (DC1). This work was partly supported by Grant-in-Aid for JSPS Fellows (Grant Number 11J04341).
The authors declare that they have no competing interests.
HL and TN developed the presented software. HL drafted the manuscript. TN, KWL and MHW edited the manuscript. All authors read and approved the final manuscript.
Electronic supplementary material
Additional file 1: Differences between iview and GLmol. The text file lists the differences between iview and GLmol. (TXT 2 KB)
Additional file 2: iview rendering of the CCR5 chemokine receptor-HIV entry inhibitor maraviroc complex  (PDB code: 4MBS), with parallax barrier effect enabled. A parallax barrier is a device placed in front of a LCD (Liquid Crystal Display) to permit a stereoscopic or multiscopic image without 3D glasses. The device is composed of a layer of material with precision slits, enabling each eye to see a different set of pixels and thus creating a sense of depth through parallax. (PNG 771 KB)
Additional file 3: iview rendering of the CCR5 chemokine receptor-HIV entry inhibitor maraviroc complex  (PDB code: 4MBS), with oculus rift effect enabled. The Oculus Rift is a virtual reality head-mounted device, which features a high-speed inertial measurement unit and a LCD display, visible via dual lenses positioned over the eyes to provide a 90 degrees horizontal and 110 degrees vertical stereoscopic 3D perspective. (PNG 453 KB)
About this article
Cite this article
Li, H., Leung, KS., Nakane, T. et al. iview: an interactive WebGL visualizer for protein-ligand complex. BMC Bioinformatics 15, 56 (2014). https://doi.org/10.1186/1471-2105-15-56