computer programs\(\def\hfill{\hskip 5em}\def\hfil{\hskip 3em}\def\eqno#1{\hfil {#1}}\)

Journal logoJOURNAL OF
APPLIED
CRYSTALLOGRAPHY
ISSN: 1600-5767

Interactive visualization tools for the structural biologist

CROSSMARK_Color_square_no_text.svg

aDepartment of Biochemistry and Molecular Biology, Monash University, Clayton, Victoria 3800, Australia, and bMonash eResearch Center, Monash University, Clayton, Victoria 3800, Australia
*Correspondence e-mail: bosco.ho@monash.edu, ashley.buckle@monash.edu

(Received 22 March 2013; accepted 28 June 2013; online 3 August 2013)

In structural biology, management of a large number of Protein Data Bank (PDB) files and raw X-ray diffraction images often presents a major organizational problem. Existing software packages that manipulate these file types were not designed for these kinds of file-management tasks. This is typically encountered when browsing through a folder of hundreds of X-ray images, with the aim of rapidly inspecting the diffraction quality of a data set. To solve this problem, a useful functionality of the Macintosh operating system (OSX) has been exploited that allows custom visualization plugins to be attached to certain file types. Software plugins have been developed for diffraction images and PDB files, which in many scenarios can save considerable time and effort. The direct visualization of diffraction images and PDB structures in the file browser can be used to identify key files of interest simply by scrolling through a list of files.

1. Introduction

Data visualization is an important and daily activity in structural biology, and often requires several specialized applications. The workstation of the structural biologist is littered with an excess of data, which are most frequently X-ray diffraction images and atomic structure coordinates in PDB format. Although numerous software applications exist for opening and manipulating both X-ray diffraction images [iMOSFLM (Battye et al., 2011[Battye, T. G. G., Kontogiannis, L., Johnson, O., Powell, H. R. & Leslie, A. G. W. (2011). Acta Cryst. D67, 271-281.]), HKL-2000 (Minor et al., 2006[Minor, W., Cymborowski, M., Otwinowski, Z. & Chruszcz, M. (2006). Acta Cryst. D62, 859-866.]), Adxv (Adxv, 2013[Adxv (2013). Adxv - A Program to Display X-ray Diffraction Images, https://www.scripps.edu/~arvai/adxv.html.]), XDS (Kabsch, 1988[Kabsch, W. (1988). J. Appl. Cryst. 21, 916-924.])] and Protein Data Bank (PDB; Berman et al., 2000[Berman, H. M., Westbrook, J., Feng, Z., Gilliland, G., Bhat, T. N., Weissig, H., Shindyalov, I. N. & Bourne, P. E. (2000). Nucleic Acids Res. 28, 235-242.]) files [PyMOL (Schrödinger, 2010[Schrodinger LLC (2010). PyMOL. Version 1.3. https://www.pymol.org.]), Chimera (Pettersen et al., 2004[Pettersen, E. F., Goddard, T. D., Huang, C. C., Couch, G. S., Greenblatt, D. M., Meng, E. C. & Ferrin, T. E. (2004). J. Comput. Chem. 25, 1605-1612.]), QtMG (McNicholas et al., 2011[McNicholas, S., Potterton, E., Wilson, K. S. & Noble, M. E. M. (2011). Acta Cryst. D67, 386-394.]), VMD (Humphrey et al., 1996[Humphrey, W., Dalke, A. & Schulten, K. (1996). J. Mol. Graph. 14, 33-38.])], they were primarily designed to analyse files individually. When surveying a large number of files, it is cumbersome to load each file individually into a full-featured application simply to inspect the file. Instead, it would be much simpler if one could quickly search and preview files in the file browser without the execution of a full-featured application. The need for this is commonly seen with X-ray diffraction data sets, where there may be hundreds or thousands of files in a folder, and a rapid assessment of the data quality would be incredibly useful.

In regard to this, we have exploited a functionality of the Apple Macintosh operating system (OSX) called QuickLook, which allows custom-designed previews of any kind of file. By default, QuickLook allows for the visualization of text, image and video files directly from the file manager (Finder), without the need for full-featured software such as Microsoft Word or Adobe Photoshop. Specifically, we have developed two QuickLook plugins that allow for rapid visualizations of X-ray diffraction images and atomic protein structure files in PDB format. Furthermore, PDB files may be interacted with in three dimensions. These plugins can save a considerable amount of time and effort in browsing through large data sets.

2. Software design and implementation

We have written two independent QuickLook plugins, one for PDB files and the other for X-ray diffraction images (.osc and .img file extensions, supporting ADSC, mar/marCCD, Rigaku, CBF/MINI-CBF, Bruker and Oxford Diffraction detector/image formats). The plugin for PDB files, QuickLookPDB, takes advantage of the thumbnail views present in the OSX Finder application. QuickLookPDB will use, if available, an X11 version of PyMOL to render a cartoon-represented image of the PDB file, caching the image for future usage (Fig. 1[link], right). QuickLookPDB also offers a second interactive mode of visualization (Fig. 1[link], left). By pressing the spacebar, a web page is dynamically generated that renders the protein using the HTML5-based protein viewer Jolecule (https://github.com/boscoh/jolecule). Jolecule provides a number of interactions sufficient to allow a thorough examination of the protein: three-dimensional rotation and zoom, several representation styles, a distance measure, slab-view, and a selector for residues (Fig. 2[link]). Specifically, this mode of QuickLookPDB leverages the feature in Mac OSX to hook into the Webkit HTML-rendering library from anywhere within the operating system. As there is a limit to the responsiveness of Jolecule for large mol­ecules, QuickLookPDB abstains from using Jolecule if the PDB file contains over 1.2 MB of atomic coordinates. Instead QuickLook­PDB will display the PyMOL-rendered image. Furthermore, QuickLookPDB at­tempts to extract useful metadata from the PDB file, such as title, experimental method used for structure determination, resolution, and a reference containing the author list and publication (if applicable). In the thumbnail view, only the title is displayed (Fig. 1[link]), whilst all available metadata are displayed within Jolecule (Figs. 1[link] and 2[link]). In summary, QuickLookPDB provides the user with a rapid preview and identification of a desired PDB file, as well as instantaneous interactivity, without leaving the file browser.

[Figure 1]
Figure 1
Available views of a folder containing PDB files. Shown on the right is a Finder window of a folder containing PDB files with the PyMOL-rendered cartoon thumbnail. On the left is a QuickLook popup of the same PDB file using the Jolecule viewer.
[Figure 2]
Figure 2
Available QuickLook views of PDB files, using Jolecule. (a) Default cartoon view of a multi-chain protein complex, showing the two chains as different colours. (b) Zoomed view of a protein active site showing control of the z-slab, labelling of a selected residue and display of neighbouring residues as ball-and-stick representation. (c) Cartoon view of a protein–DNA complex, showing the two protein chains as red–brown and green and the DNA helix as blue and gold. (d) Overlay of Cα chains of two similar structures.

The second plugin we have developed, QuickLookDiffract, allows for the quick preview of X-ray diffraction images, without the need for fully featured applications such as iMOSFLM (Fig. 3[link]). QuickLookDiffract functions by incorporating a customized build of the diff2jpeg application from the CCP4 package (Winn et al., 2011[Winn, M. D. et al. (2011). Acta Cryst. D67, 235-242.]). Images are rendered as JPEG files using diff2jpeg, cached to a temporary folder, loaded up by the plugin and displayed to the user.

[Figure 3]
Figure 3
Available views of a folder containing X-ray diffraction images. Shown on the right is a Finder window displaying the thumbnail view of a diffraction image. On the left is the QuickLook popout of the same diffraction image.

An added utility of this software is the rapid visualization of search results. Typically, PDB files are not stored logically in an ordered file system, but are instead downloaded ad hoc to various folders scattered throughout the file system. Using the spotlight search function built in to Mac OSX, it is possible to visually inspect the results of a simple search (Fig. 4[link]). Finally, another popular and useful finder view is `Cover Flow' (Fig. 5[link]). Cover Flow integrates very nicely with our plugins, showing a stack of documents in a folder and allowing the user to visually flip through the folder.

[Figure 4]
Figure 4
Cover Flow view of a folder containing PDBs and diffraction images.
[Figure 5]
Figure 5
Instant three-dimensional visualization of search results using Jolecule.

The plugins have both been tested on OSX 10.6.x, 10.7.x and 10.8.x, resulting in X-ray diffraction images for all three major versions; however, Jolecule is only compatible with OSX versions 10.7.x and greater, requiring WebKit to be available to QuickLook. We have made the plugins available as a binary with installer, as well as a release of the source code of each plugin and the modifications made to the CCP4 diff2jpeg application. The plugin installer and source code can be downloaded from https://benporebski.github.io/CrystallographyQLPlugins/.

3. Conclusions

The developed plugins aim to be a useful tool for the structural biologist, allowing for rapid identification and visualization of structural data, saving time and effort during daily activities. The plugins and source code are freely available at the following link: https://benporebski.github.io/CrystallographyQLPlugins/.

General comments and suggestions for improvements are welcome and should be addressed to Ashley Buckle at ashley.buckle@monash.edu or Bosco Ho at bosco.ho@monash.edu.

Acknowledgements

We are grateful to Daouda Traore, Cyril F. Reboul, Jack T. Hertzog, David E. Hoke and Itamar Kass for testing the software and providing feedback and criticism.

References

First citationAdxv (2013). Adxv – A Program to Display X-ray Diffraction Images, https://www.scripps.edu/~arvai/adxv.htmlGoogle Scholar
First citationBattye, T. G. G., Kontogiannis, L., Johnson, O., Powell, H. R. & Leslie, A. G. W. (2011). Acta Cryst. D67, 271–281.  Web of Science CrossRef CAS IUCr Journals Google Scholar
First citationBerman, H. M., Westbrook, J., Feng, Z., Gilliland, G., Bhat, T. N., Weissig, H., Shindyalov, I. N. & Bourne, P. E. (2000). Nucleic Acids Res. 28, 235–242.  Web of Science CrossRef PubMed CAS Google Scholar
First citationHumphrey, W., Dalke, A. & Schulten, K. (1996). J. Mol. Graph. 14, 33–38.  Web of Science CrossRef CAS PubMed Google Scholar
First citationKabsch, W. (1988). J. Appl. Cryst. 21, 916–924.  CrossRef CAS Web of Science IUCr Journals Google Scholar
First citationMcNicholas, S., Potterton, E., Wilson, K. S. & Noble, M. E. M. (2011). Acta Cryst. D67, 386–394.  Web of Science CrossRef CAS IUCr Journals Google Scholar
First citationMinor, W., Cymborowski, M., Otwinowski, Z. & Chruszcz, M. (2006). Acta Cryst. D62, 859–866.  Web of Science CrossRef CAS IUCr Journals Google Scholar
First citationPettersen, E. F., Goddard, T. D., Huang, C. C., Couch, G. S., Greenblatt, D. M., Meng, E. C. & Ferrin, T. E. (2004). J. Comput. Chem. 25, 1605–1612.  Web of Science CrossRef PubMed CAS Google Scholar
First citationSchrodinger LLC (2010). PyMOL. Version 1.3. https://www.pymol.orgGoogle Scholar
First citationWinn, M. D. et al. (2011). Acta Cryst. D67, 235–242.  Web of Science CrossRef CAS IUCr Journals Google Scholar

This is an open-access article distributed under the terms of the Creative Commons Attribution (CC-BY) Licence, which permits unrestricted use, distribution, and reproduction in any medium, provided the original authors and source are cited.

Journal logoJOURNAL OF
APPLIED
CRYSTALLOGRAPHY
ISSN: 1600-5767
Follow J. Appl. Cryst.
Sign up for e-alerts
Follow J. Appl. Cryst. on Twitter
Follow us on facebook
Sign up for RSS feeds