- Open Access
MyChemise: A 2D drawing program that uses morphing for visualisation purposes
© Wilhelm; licensee Chemistry Central Ltd. 2011
- Received: 5 June 2011
- Accepted: 12 December 2011
- Published: 12 December 2011
MyChemise (My Chemical Structure Editor) is a new 2D structure editor. It is designed as a Java applet that enables the direct creation of structures in the Internet using a web browser. MyChemise saves files in a digital format (.cse) and the import and export of .mol files using the appropriate connection tables is also possible.
MyChemise is available as a free online version in English and German. The MyChemise GUI is designed to be user friendly and can be used intuitively. There is also an English and German program description available as a PDF file.
In addition to the known ways of drawing chemical structure formulas, there are also parts implemented in the program that allow the creation of different types of presentation. The morphing module uses this technology as a component for dynamic visualisation. For example, it enables a clear and simple illustration of molecule vibrations and reaction sequences.
- Structural Image
- Menu Item
- Cyclic Hydrocarbon
- Window Platform
- Smile String
2D drawing programs account for some of the first computer applications in chemistry and are widely distributed. Many publications, especially in recent times [1–3], show that this sector is developing continually. The incorporation of new programming languages or improvements in methods for targeted structure searching in the Web continues to present a challenge for chemists who are interested in programming.
To anchor the images using a link into the Web (e.g. using CAS-numbers).
Copy the structural images from a source in the Web.
Use a program already available on the market for drawing.
Develop a program oneself.
The first two options can be ruled out because not all the compounds entered were available as finished structures. Additionally, the structural images should look standardised if they are to be used as a marketing instrument for customer relations. Obtaining the images from different sources would have been unsatisfactory because the sizes and types of representations vary greatly. Known drawing programs would have been useable; however the drawings would have still required subsequent work in order to achieve a company specific layout. Therefore the fourth option seemed most sensible and the most interesting.
MyChemise was written with the intention of producing a stand-alone approach in this field and because of the fun in programming chemistry software. The Version 11.01 presented here was created as sideline work in the period between January 2008 and March 2011.
The readers of this article can also download a zip-file (additional file 2) if they want to install MyChemise on their desktop PC. It contains two files (MyChemise.html and ChemJar.jar). If you unzip both into the same folder it is possible to start MyChemise in your browser (with up-to-date Java plug-in) with a double-click on MyChemise.html (in case of Windows platforms) even in the off-line mode, too.
MyChemise is a signed applet, which means that it does not have to obey the applet sandbox principle intended for security purposes. It is possible to work online in the browser and once the work is finished to save the files on your own PC. This means that drawings can be directly exported as image files into other applications using the clipboard (Note for Linux users: see program description).
The (theoretical) possible number of atoms that can be drawn in a file in MyChemise was set to 100000.
MyChemise is optimized for Windows platforms with Firefox as browser. The minimum system requirements are a 1.6 GHz processor and 2 GB of RAM.
All atoms and bonds can be coloured. This allows aesthetically pleasing structural images to be easily created. Formulae can be represented in long form (with C- and H atoms labelled) and in short form. Many different bond types are available for selection. Cyclic hydrocarbons and aromatics can be quickly designed from a pull-down menu. Different 6-ring conformations can be constructed in the same way. Heterocyclics can be created by simply replacing the C atoms. Bond angles and lengths can be continuously adjusted by dragging the mouse or fit to the grid. Preset molecular geometries (tetrahedral, octahedral, etc.) make drawing easier. Newman projections are also possible.
File import and export
The mol file format [6, 7], version V2000 was chosen as an interface so that MyChemise can also exchange files with similar programs. Mol files can be opened in the MyChemise screen and can be saved in mol format. In addition, mol files can be inserted just by a single click of the mouse into cse files and can also be attached onto existing structures. When doing this, the atom farthest to the left is always used as the coupling atom (atom with the smallest x-coordinate).
The export function does not automatically limit the number of atoms and bonds that are to be exported. MyChemise allows the input of a large number of atoms, whilst mol files are setup for a maximum of 999 atoms and 999 bonds, this means that every user must ensure for themselves that when creating files they make them compatible with other programs.
A special highlight in MyChemise is the option of presenting any created drawings, structural images and texts in different ways; this can be done directly in the program itself. One of the options available allows you to put together different documents into a script in order to present a slide show. Another option exists that, for example, can arrange the fluctuating border structures of chemical depictions into an animation. Such animations can of course be integrated into a script. Morphing as a means of teaching chemistry/science has up until now been used very little. MyChemise offers you morphing as method of presentation.
The morphing module
When morphing is carried out, two images are brought together. This involves allocating those areas of the images with each other that are to be transformed. Changes are made in steps and apply to both shape and colour. Intermediate steps are interpolated from the starting images, whereby the share of one image reduces in dimensions while the dimensions of the other image increase . Using MyChemise, images can be morphed using affine or three-point mapping (i.e. division into triangular sections, affine mapping) and by dividing up into square areas. Four-point mapping (projective mapping) is mathematically solved using the unit squares method .
When illustrating chemical states, it is sometimes more useful to transform only specific areas into each other. MyChemise achieves this by automatically recognising only the bonding and atom areas in the structural images used as being areas to be morphed. As soon as only two drawings have been made, dynamic representations can then be quickly produced by calculating the intermediate steps. These allow movements (e.g. molecular vibrations) and sequences (e.g. reaction mechanisms) to be graphically simulated.
MyChemise is a new 2D drawing program that places special importance on simple operation and versatile ways of creating structural images. Continual advancements in processors have led to increasingly faster desktop PCs. Greater amounts of RAM have also enabled the inclusion of methods for displaying dynamic processes in such programs, in this case the morphing module.
An enhancement for MyChemise is currently being worked on, which will, amongst other things, be able to export SMILES strings  that can be used for structure searching in databases.
The continuation of MyChemise as an open source project has been planned for a later date.
Devoted to Andreas Schumann and Hans Wilhelm.
I would like to thank Ingrid for providing specialised literature (and not only this). Daniel receives thanks for his support in setting up the homepage. MyChemise was written using free available java editor JOE . SignTool  was very useful for signing the applets.
List of sources
Parts of the following program codes were adapted for and extended for MyChemise:
For the preview window in the File- > Open menu: PreviewPanel.java http://www.quignon.de accessed 11/22/2011
For the morphing module: TriangulatedImage.java and MorphingCandS.java from  http://public.rz.fh-wolfenbuettel.de/~Klawonn/computergrafik/ accessed 11/22/2011
- Ertl P: Molecular structure input on the web. J Cheminform. 2010, 2: 1-10.1186/1758-2946-2-1.View ArticleGoogle Scholar
- Dallakian P, Haider N: FlaME: Flash Molecular Editor - a 2D structure input tool for the web. J Cheminform. 2011, 3: 6-10.1186/1758-2946-3-6.View ArticleGoogle Scholar
- Kuhn S: Open Source: Strukturen zeichnen. Nachr Chem. 2010, 58: 661-663.View ArticleGoogle Scholar
- Knalltundstinkt. Authors homepage: http://www.knalltundstinkt.de accessed 11/17/2011
- WST-Winkel GmbH. Beständigkeitslisten http://www.wst-winkel.de/best.html accessed11/17/2011
- Cheminformatics - A Textbook. Edited by: Gasteiger J, Engel T. 2003, Weinheim: Wiley-VCH GmbH & Co.KGaAGoogle Scholar
- CTfile Formats. accessed 11/17/2011, [http://download.accelrys.com/freeware/ctfile-formats/ctfile-formats.zip]
- Burger W, Burge MJ: Digitale Bildverarbeitung. 2005, Berlin: Springer-Verlag, 377-385.Google Scholar
- Weininger D: SMILES, a chemical language and information system. 1. Introduction to methodology and encoding rules. J Chem Inf Comput Sci. 1988, 28: 31-36. 10.1021/ci00057a005.View ArticleGoogle Scholar
- JOE. accessed 11/17/2011, [http://www.javaeditor.de/]
- SignTool. accessed 11/17/2011, [http://www.java-forum.org/applets/16717-applets-webstart-anwendungen-signieren.html]
- Klawonn F: Grundkurs Computergrafik mit Java. 2005, Wiesbaden: Vieweg Friedr. & Sohn Verlag, 39-44. 109-114View ArticleGoogle Scholar
- Knudsen J: Java 2D Graphics. 1999, Sebastopol, CA, USA: O'Reilly, 70-73.Google Scholar
This article is published under license to BioMed Central Ltd. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.