computer programs
WebCSD: the online portal to the Cambridge Structural Database
aCambridge Crystallographic Data Centre, UK
*Correspondence e-mail: thomas@ccdc.cam.ac.uk
WebCSD, a new web-based application developed by the Cambridge Crystallographic Data Centre, offers fast searching of the Cambridge Structural Database using only a standard internet browser. Search facilities include two-dimensional molecular similarity, text/numeric and searching. Text, chemical diagrams and three-dimensional structural information can all be studied in the results browser using the efficient entry summaries and embedded three-dimensional viewer.
Keywords: WebCSD; computer programs; database searching; Cambridge Structural Database; similarity searching; substructure; reduced cell.
1. Introduction
WebCSD is a novel web-based application developed by the Cambridge Crystallographic Data Centre (CCDC). The software provides access to the information stored within the Cambridge Structural Database (CSD; Allen, 2002) using only a standard internet browser. WebCSD offers tools for searching, browsing and viewing crystal structures without the need to install any local software. WebCSD will allow simpler and more efficient dissemination of the CSD's collection of small-molecule crystal structures, which is comprehensive for the published literature and contains many otherwise unpublished structures. It also provides access to the latest information through weekly updates to the public WebCSD servers. WebCSD provides an intuitive interface to fast, straightforward searches of the database, rather than attempting to replicate the extensive functionality of the (locally installed) CSD system software for structural analysis. This new application also contains some additional capabilities not accessible through the installed software, including similarity searching.
2. Overview
The software for searching ConQuest (Bruno et al., 2002) and Mercury (Macrae et al., 2008), has been focused on providing sophisticated and flexible tools for crystallographers, structural chemists and the drug design community. As the use of information has broadened, more users are extra- or multi-disciplinary. This means that the demand for a more accessible and collaborative CSD user environment has increased. The Web provides the ideal medium for large companies and academic departments where communication and collaboration as well as software distribution can be challenging (Williams, 2008).
knowledge provided by the CCDC, such asAreas where WebCSD is designed to be useful are in the medicinal chemistry and pharmaceutical arenas. Providing easy-to-use web-based tools for searching both in-house and CSD structures gives the chemist almost instant access to a wealth of valuable structural and conformational information (Taylor, 2002) without the need for locally installed software or lengthy start-up times sometimes associated with more complex tools. WebCSD is available via the CCDC's public server and also as an intranet version that supports the use of in-house databases.
Another particularly important application of web software is in the area of chemical education. Knowledge of the three-dimensional nature of chemical compounds is fundamental to the education of every chemist (Bodner & Guay, 1997). Without this knowledge, concepts such as conformation, stereochemistry, and the shapes of metal coordination environments cannot be properly understood. The CSD is therefore an essential resource for chemistry teachers. Not only does the CSD allow students to visualize and examine molecules in three dimensions, but it also provides an opportunity to work with real measured data, complete with experimental errors and statistical variations. Raw data mined from the CSD challenges students to think critically about the fundamental topics of bonding and molecular structure and also encourages them to consider the limitations and advantages of experimental structures. The ease of access offered via WebCSD should make it ideal for teachers and students to use the CSD in the classroom. In addition a 500-structure teaching subset of the database, containing a diverse set of molecules as well as a range of illustrative teaching exercises, is freely available online (Battle et al., 2010).
3. Technical advances
3.1. Replacing the underlying database
Since the late 1980s, data within the CSD have been stored in the ASER format that was developed for use with the QUEST search program (Allen et al., 1991), the precursor to ConQuest. The ASER format was designed to store bibliographic, connectivity and three-dimensional coordinate data together in a single record that was machine readable and efficient in terms of rapid access and low storage space. However, the structure of the ASER records has limited extensibility and it has become desirable to include additional data to address the needs of new areas of research.
WebCSD therefore uses the embedded relational database management system SQLite (http://www.sqlite.org ). The SQLite system allows the addition of extra relational data tables, in which information can be sorted, that are linked to the CSD entries. These indexed data tables mean that searches can be sped up significantly by using a binary search algorithm which makes progressively better guesses to narrow down the search. The new system also allows easy and flexible storage of molecular fingerprints and database bit screens (Allen et al., 1991) which are used in both and similarity searching.
This paper describes WebCSD – the new web interface developed for searching and browsing the CSD – but the re-design of the underlying database system also allows access to the data via other web services. This will allow easy integration of the CSD with other online databases.
3.2. Multi-threading
WebCSD's server-based software was designed from the outset to utilize multi-threading – this means that each individual search process and database query operates independently in a parallel computational process. The WebCSD server can therefore obtain maximum benefit from the computational resources available, which allows it to run faster on multi-core or multiple CPU systems. Another major advantage of this system, even using a single CPU, is that it allows the application to remain responsive to input whilst simultaneously executing multiple tasks. This means that users accessing WebCSD servers can run multiple, complex searches whilst concurrently browsing the results of an earlier completed search.
4. WebCSD search functionality
4.1. Server implementation
The search software that runs on the WebCSD servers is written in C++, using functionality provided by the CCDC's C++ Toolkit (Bruno et al., 2002). This same software is central to the CCDC's Mercury (Macrae et al., 2008), Mogul (Bruno et al., 2004), IsoStar (Bruno et al., 1997) and enCIFer (Allen et al., 2004) applications.
4.2. searching
WebCSD, and also in ConQuest, is achieved by decoding the search query into chemically meaningful information (e.g. contains Cl, or has a C=N bond), screening out structures that cannot possibly match (i.e. structures that do not contain the required component), and then comparing the connectivities (or molecular graphs) of the query and the remaining structures to determine matches.
searching inSubstructure searching (i.e. subgraph isomorphism) in the Toolkit was originally performed (Chisholm & Motherwell, 2004) with an in-house implementation of the Ullmann (1976) algorithm for depth-first searching. A re-implementation of the searching code using a breadth-first backtracking approach has improved the performance when searching for particularly complex structures. This new implementation also stores less data at each stage of the search, giving a further improvement in performance. Additional optimizations were required for searches of large macrocyclic compounds, for example detecting whether the query contains a ring assembly larger than any that occur in the structures being searched: if so, there cannot be a match. Many new screens have also been introduced, which improve search speed noticeably by reducing the number of structures needing to be extracted from the database and searched.
The Toolkit's WebCSD to offer some novel search options within the query sketcher, for example in dealing with cyclicity. In WebCSD it is possible to apply constraints with respect to the size of the smallest ring an atom or bond is involved in, such as the maximum, the minimum or a custom-defined range.
searching implementation was designed to be very flexible, making it easy to add new types of constraint. This has allowedThe WebCSD user interface currently allows two-dimensional searching (no intermolecular interactions or other three-dimensional constraints) and the software can identify matches very quickly as a result of the new algorithm. Three-dimensional searching will be added in a future version of the software.
4.3. Similarity searching
Alongside the ; Johnson & Maggiora, 1990).
search tool is a complementary structure-based search option which determines the similarity of molecular components in the CSD to a defined query molecule. There are two main aspects to the calculation of similarity between molecules in two dimensions: first the method by which the molecules are represented (commonly as `fingerprints' or binary strings) and secondly the way in which the similarity between these representations is quantified (the similarity coefficient). The effectiveness of any similarity searching tool for a particular problem will be dependent on both of these aspects (Willett, 1987The similarity calculation in WebCSD uses molecular fingerprints that are determined using the chemical features of the molecules, including atom types, bond types and bonded paths through the molecule. Similarity fingerprints in the CSD are similar to those used in Relibase (Hendlich et al., 2003). For each separate molecule (or connectivity) in a a molecular fingerprint of 2040 bits is generated. The molecular fingerprint is created using all atom and bond paths of up to ten atoms in a molecule. The algorithms used are summarized in Fig. 1. These algorithms are applied to a given molecule to set bits in the fingerprint. The approach is similar to others used in common chemical search systems [for example, Daylight fingerprints (James & Weininger, 2008)]. The fingerprints of all the unique connectivities in the CSD are pre-calculated and stored in a relational database so that searching the information is extremely quick.
The quantification of similarity between molecular fingerprints is performed using standard similarity measures. Many articles discuss and compare coefficients for database screening (Whittle et al., 2003; Haranczyk & Holliday, 2008). Currently, the Tanimoto (1957) and Dice (1945) coefficients are presented to users, both of which produce coefficient values between zero and one (a value of zero indicating no similarity and a value of one indicating identical fingerprint representations). These coefficients have been found to be of the most use for the CSD problem domain, but other measures could be added in the future, such as the Ochiai/cosine similarity (Ochiai, 1957) or Hamming (1950) distance.
The utility of the similarity search tool can be illustrated by taking the top ten selling small-molecule drugs [based on 2006 sales figures in USD (Humphreys, 2007)] and running a similarity search for each of these. For these ten molecular structures (see supplemental material1) a similarity search was performed and the top ten chemically distinct matches, based on the Tanimoto coefficient, were recorded. To determine how relevant the results of these searches were, we can use the `bioactivity' field in the CSD records as a marker for activity (albeit an imperfect one). On average, three out of the ten similarity search results (a total of 30) were listed in the CSD as having bioactivity. The 30 `hits' were manually inspected and 21 of these 30 `hits' had activities obviously related to that of the drug (e.g. the similarity search based on Protonix, or pantoprazole, found two other drugs with known anti-ulcerative activity; Fig. 2).
As with all similarity fingerprints, the fingerprints used for CSD similarity searching have certain strengths and weaknesses. The example above shows that for typical feature-rich drug-like molecules, fingerprints can show reasonable retrieval of related compounds. Because of the nature of the fingerprints, the similarity search will tend to find matches that contain closely related scaffolds. There are, however, a number of caveats with the fingerprints and similarity calculations as currently implemented. First, molecules that contain fewer atoms are less well defined, and as such are more prone to low similarity. Secondly, the fingerprints do not account for cyclicity; for example, hexane and cyclohexane are indistinguishable. Thirdly, the fingerprints are element based. Consequently, atoms with related properties, such as halogens, are treated as distinct from one another. This can cause a similarity search to miss what would appear to be chemically reasonable hits. Different transition metal elements are treated as distinct even if they occupy chemically similar environments. For example, consider a search for the molecule shown in Fig. 3(b). One would expect this complex to be highly related to the equivalent Co2+ and Cu2+ complexes (Figs. 3a and 3c; Knuuttila, 1982), as they have chemically identical scaffolds, but at the moment these would not be listed with high similarity coefficients. In future versions of WebCSD we will address such issues by providing alternative generalized fingerprints to address such cases.
4.4. Text/numeric searching
One of the benefits of using SQLite is that the text fields in the database can be fragmented (or `tokenized') and stored in a relational database format using the built-in module `FTS3' for full text search indexing. This tokenization and indexing using `Google-like' technology (Hipp, 2006) means that text searches are extremely fast, as the search engine does not need to read all the text, but simply look up the matching entries in the relevant table. Standard bibliographic information is easily searchable in WebCSD including author, journal, publication year, journal volume and page number. The real power of the full text search indexing is more apparent though when using the `all text' search – searches for an exact string such as `antibacterial' (786 hits) or `agonist' (215 hits) take less than a second to search through nearly half a million entries in the CSD.
A number of new specific fields are also available for flexible and/or combined searching, such as bioactivity, habit, phase transitions and e.g. for all bioactive compounds with a plate habit, but restricted to only the entries added since the user last accessed WebCSD.
The interface is designed such that any of the text/numeric search types can be combined into composite queries, so it is simple to design a search, for example, where the habit field contains the string `needle' and the phase transitions field has any defined value. Further options in the text/numeric interface include a range of advanced date search fields in addition to the year of publication. Users can therefore search based on when structures were added to the CSD or when they were last modified; this means it is simple to re-run an old search,4.5. searching
The use of the Niggli et al., 1980). This problem was avoided in ConQuest by using only the lengths for searches. The reduced search algorithm used in WebCSD is a new implementation which uses a more advanced methodology involving `nearly Buerger reduced cells' (Andrews & Bernstein, 1988). Essentially the and a set of closely related cells are determined and the database is searched for any matches to this set. The result is that the search tool in WebCSD takes full account of the angles and thus produces fewer false positive hits when searching the database.
(generally referred to as `the reduced cell') can be problematic as a result of mathematical instabilities. Whilst the can be uniquely defined for any specific lattice, the angles of the can vary a great deal with only small changes in the lattice parameters (AndrewsThis facility is ideal for experimental crystallographers. The WebCSD. This should ensure that organic and metal–organic crystal structures are not redetermined unknowingly.
of a sample is usually determined through analysis of a small data set prior to starting a full experiment. This can then be compared with entries in the CSD using the search in5. Tools for analysing results in WebCSD
5.1. Embedded three-dimensional viewing
The i.e. the coordinates. This means that it is very important to provide the ability within the results browser for users to access basic three-dimensional molecular and crystal-packing visualization functionality. WebCSD allows the use of either of two different three-dimensional viewers as embedded Java applets in the interface: Jmol (2009) or OpenAstexViewer (2009). These molecular viewers both provide a range of atom/bond style options as well as atom labelling and tools to measure distances, angles and torsion angles. Jmol also supports some crystallographic options such as the display of a full or a packing range of 3 × 3 × 3 unit cells. Fig. 4 shows an example of a 3 × 3 × 3 packing range for a nanoporous dipeptide (CSD refcode XUDVOH; Görbitz, 2002) where channels can be seen running along the crystallographic c axis.
information accessed either through searches or simply by browsing the CSD is inherently focused on three-dimensional information –The embedded viewers allow WebCSD to be used without the need for additional client-side applications. Users can, however, still choose to export crystal structures from WebCSD into Mercury (either one structure as a or many as a list of refcodes) for more advanced structure viewing and analysis tools. In this way WebCSD can act as a springboard for more complex studies – allowing very fast searches with links to CCDC applications, or exporting of files for other programs, to allow further investigation of the results.
5.2. Hyperlinking of textual results
The results browser in WebCSD provides, alongside the three-dimensional viewer, a two-dimensional molecular diagram and a display of the textual and numeric information. Within the `Details' tab of the results browser, bibliographic as well as chemical, crystallographic and experimental information relating to the displayed structure is given. A range of the categories within the `Details' tab are parsed by WebCSD to identify useful pieces of text from which to hyperlink. For example, all authors listed for an entry are hyperlinked, such that clicking on their name will launch an author name search. Similarly, compound name and synonym sections are also hyperlinked so that when looking at the structure of 5-amino-2H-1,2,6-thiadiazine-1,1-dioxide (CSD refcode ATDZDX; Albrecht et al., 1979), for example (Fig. 5), it is possible to simply click on `thiadiazine' and, in less than a second, find all 154 structures in the CSD with the string `thiadiazine' in their compound name. This facility makes browsing between entries with similar chemistries particularly efficient. When present, the DOI (data object identifier) is hyperlinked, allowing access to the original publication of the crystal structure.
6. Documentation, availability and environment
WebCSD includes a set of FAQs and pop-up help messages within the interface. Access to a 500-structure subset of the CSD using WebCSD is freely available from the CCDC website (http://www.ccdc.cam.ac.uk/free_services/teaching/ ) for demonstration or teaching purposes. WebCSD is currently fully supported on the following web browsers: Internet Explorer (version 7.0 and later), Mozilla Firefox (version 2.0 and later) and Safari (version 4.0 and later). The software has also been tested and shown to work on a number of other common browsers including Google Chrome. WebCSD access is provided via a public server hosted at the CCDC to CSD system subscribers holding unlimited seat licences. For more information about access, contact admin@ccdc.cam.ac.uk.
Supporting information
Zip file containing the molecular structures of the top ten selling small-molecule drugs in SDF format. DOI: 10.1107/S0021889810000452/kk5057sup1.zip
Acknowledgements
We thank all of the developers at the CCDC who have contributed to the WebCSD project, in particular Greg Shields, Lucy Purkis and Matt Towler for their help and technical advice. We would also like to acknowledge all the members of the technical and scientific support teams at the CCDC who have worked on version 1.0 of WebCSD, especially Gary Battle, as well as the editors and deposition coordinators who helped to test the program. Bob Hanson and the rest of the Jmol team are thanked for their help in modifications and integration of the Jmol viewer into the WebCSD interface. The CCDC is a not-for-profit, charitable institution dedicated to the maintenance and distribution of the CSD. The financial contribution of its subscribers to the work is gratefully acknowledged.
References
Albrecht, H. A., Blount, J. F., Konzelmann, F. M. & Plati, J. T. (1979). J. Org. Chem. 44, 4191–4194. CSD CrossRef CAS Web of Science Google Scholar
Allen, F. H. (2002). Acta Cryst. B58, 380–388. Web of Science CrossRef CAS IUCr Journals Google Scholar
Allen, F. H., Davies, J. E., Galloy, J. J., Johnson, O., Kennard, O., Macrae, C. F., Mitchell, E. M., Mitchell, G. F., Smith, M. J. & Watson, D. G. (1991). J. Chem. Inf. Comput. Sci. 31, 187–204. CrossRef CAS Google Scholar
Allen, F. H., Johnson, O., Shields, G. P., Smith, B. R. & Towler, M. (2004). J. Appl. Cryst. 37, 335–338. Web of Science CrossRef CAS IUCr Journals Google Scholar
Andrews, L. C. & Bernstein, H. J. (1988). Acta Cryst. A44, 1009–1018. CrossRef CAS Web of Science IUCr Journals Google Scholar
Andrews, L. C., Bernstein, H. J. & Pelletier, G. A. (1980). Acta Cryst. A36, 248–252. CrossRef CAS IUCr Journals Web of Science Google Scholar
Battle, G. M., Allen, F. H. & Ferrence, G. M. (2010). J. Chem. Educ. Submitted. Google Scholar
Bhatt, P. M. & Desiraju, G. R. (2007). Chem. Commun. pp. 2057–2059. Web of Science CSD CrossRef Google Scholar
Bodner, G. M. & Guay, R. B. (1997). Chem. Educ. 2(4), S1430-4171(97)04138-X. Google Scholar
Bruno, I. J., Cole, J. C., Edgington, P. R., Kessler, M., Macrae, C. F., McCabe, P., Pearson, J. & Taylor, R. (2002). Acta Cryst. B58, 389–397. Web of Science CrossRef CAS IUCr Journals Google Scholar
Bruno, I. J., Cole, J. C., Kessler, M., Luo, J., Motherwell, W. D. S., Purkis, L. H., Smith, B. R., Taylor, R., Cooper, R. I., Harris, S. E. & Orpen, A. G. (2004). J. Chem. Inf. Comput. Sci. 44, 2133–2144. Web of Science CrossRef PubMed CAS Google Scholar
Bruno, I. J., Cole, J. C., Lommerse, J. P. M., Rowland, R. S., Taylor, R. & Verdonk, M. L. (1997). J. Comput. Aided Mol. Des. 11, 525–537. Web of Science CrossRef CAS PubMed Google Scholar
Chisholm, J. A. & Motherwell, S. (2004). J. Appl. Cryst. 37, 331–334. CrossRef CAS IUCr Journals Google Scholar
Dice, L. R. (1945). Ecology, 26, 297–302. CrossRef Web of Science Google Scholar
Görbitz, C. H. (2002). Acta Cryst. B58, 849–854. Web of Science CSD CrossRef IUCr Journals Google Scholar
Hamming, R. W. (1950). Bell Syst. Tech. J. 29, 147–160. CrossRef Google Scholar
Haranczyk, M. & Holliday, J. (2008). J. Chem. Inf. Model. 48, 498–508. Web of Science CrossRef PubMed CAS Google Scholar
Hendlich, M., Bergner, A., Günther, J. & Klebe, G. (2003). J. Mol. Biol. 326, 607–620. Web of Science CrossRef PubMed CAS Google Scholar
Hipp, D. R. (2006). 13th Annual Tcl/Tk Conference, Naperville, Illinois, USA, http://www.sqlite.org/tcl2006-keynote.pdf . Google Scholar
Humphreys, A. (2007). MedAdNews, 13(7). Google Scholar
James, C. A. & Weininger, D. (2008). Daylight Theory Manual, ch. 6. Daylight Chemical Information Systems, Aliso Viejo, CA, USA, http://www.daylight.com/ . Google Scholar
Jmol (2009). Jmol: an Open-Source Java Viewer for Chemical Structures in 3D, http://www.jmol.org . Google Scholar
Johnson, M. A. & Maggiora, G. M. (1990). Concepts and Applications of Molecular Similarity. New York: John Wiley and Sons. Google Scholar
Knuuttila, P. (1982). Acta Chem. Scand. 36, 767–772. CrossRef Web of Science Google Scholar
Macrae, C. F., Bruno, I. J., Chisholm, J. A., Edgington, P. R., McCabe, P., Pidcock, E., Rodriguez-Monge, L., Taylor, R., van de Streek, J. & Wood, P. A. (2008). J. Appl. Cryst. 41, 466–470. Web of Science CrossRef CAS IUCr Journals Google Scholar
Ochiai, A. (1957). Bull. Jpn. Soc. Sci. Fish. 22, 526–530. CrossRef Google Scholar
OpenAstexViewer (2009). OpenAstexViewer: Software for Molecular Visualization, http://openastexviewer.net/ . Google Scholar
Tanimoto, T. T. (1957). IBM Internal Report, 17 November. IBM, New York, USA. Google Scholar
Taylor, R. (2002). Acta Cryst. D58, 879–888. Web of Science CrossRef CAS IUCr Journals Google Scholar
Ullmann, J. R. (1976). J. Assoc. Comput. Mach. 23, 31–42. CrossRef Web of Science Google Scholar
Vyas, K., Sivalakshmidevi, A. & Om Reddy, G. (2000). Acta Cryst. C56, e572–e573. Web of Science CSD CrossRef CAS IUCr Journals Google Scholar
Whittle, M., Willett, P., Klaffke, W. & van Noort, P. (2003). J. Chem. Inf. Comput. Sci. 43, 449–457. Web of Science CrossRef PubMed CAS Google Scholar
Willett, P. (1987). Similarity and Clustering in Chemical Information Systems. Letchworth: Research Studies Press. Google Scholar
Williams, A. J. (2008). Drug Discov. Today, 13, 502–506. Web of Science CrossRef PubMed CAS 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.