Kategorien

Updated PyMol installation guide

Another version of PyMol (1.3r1) has been released.

Unfortunately, with every new version the trouble of compiling it for windows is getting bigger and bigger… I do have teh feeling that this is -at least- knowingly accepted by the releasers.

However, after a couple of hours fiddling around with the installation routine, I was able to update my guide to the new version. Have fun and let me know, if it works for you!

Jan

Compiling PyMol for Windows - a viewer for 3D structures (of proteins)

2nd Update:
A(nother) new version of PyMol needed a couple of updates to the method outlined below. The following method works as of 02.09.2010 with PyMol 1.3r1 (Revision 3911) and cygwin (1.7.7-1) . Please let me know if you have any trouble.

There are many program out on the market for visualising three dimensional structure:  SwissPDB-Viewer, Rasmol and Jmol, just to name a few. They all have their advantages; however, in recent years PyMol seems to have established itself as the leading standard for the generation of high quality figures for publications.

PyMol is a user-sponsored open-source project originally created by Warren Lyford DeLano and continued after his early death by Schrödinger. Open-source means everyone can get the source code of the program to make his own version, user-sponsored means you have to pay if you want an executable (meaning: a running version).  For Linux users it’s normally no a big problem to generate a running program from the sources, but on Windows systems this is mostly a hassle. The following guide will take you through every step needed to generate an up-to-date version of PyMol running on Windows.

Preliminary remark

  1. There is an old but executable version of PyMol freely available here.
  2. There are different ways to build PyMol on Windows. The way I describe it here is “quick-and-dirty”. You probably can do it with little knowledge about your PC; however, you don’t get a “real” Windows program and you can’t easily give the program to others. If you want to do it the “hard” way have a look here, but I wouldn’t recommend it if you are not an PC expert.

Compiling / Building PyMol

  1. Download and install Cygwin (http://www.cygwin.com/). In additional to the standard packages select the following packages during the installation routine [program (package titles)]:
    1. G++ (gcc-g++)
    2. Python (python, phyton-tkinter)
    3. openGL (openGL)
    4. PNG (libPNG12, libPNG12-devel)
    5. TCL/Tk libaries (tcltk)
  2. Download source codes for PyMol  http://pymol.svn.sourceforge.net/viewvc/pymol/trunk.tar.gz?view=tar and extract it to c:\pymol
  3. Replace the setup.py in c:\pymol\ with the file in this archive.
  4. Start the “Cygwin bash shell” form the Windows start menu and change to the pymol directory by typing
  5. cd c:/pymol
  6. Compile PyMol using following commands in the cygwin command line:
  7. python setup.py build install
    python setup2.py install
  8. Copy “pymol” to usr/bin or similar
  9. cp pymol /usr/bin
  10. Download PMW (http://pmw.sourceforge.net/)
  11. Copy files to temporary directory (e.g. C:\temp\)
  12. Install PMW using
  13.  cd C:\temp\mw1.3.2\src\
     pyhton setup.py install
     
  14. finished

You should now be able to start the program by typing .\pymol in the “Cygwin bash screen”.

Tip: To get a Windows shortcut to PyMol, generate a shortcut on your desktop (via right-click->New->Shortcut) and enter the following as target:

C:\cygwin\bin\run.exe "bash" "/usr/bin/pymol" 

There are plenty of resources available for how to use PyMol. Here a few nice sites:

  1. The PyMol Wiki
  2. The “How to use PyMOL” presentation of Stephen Curry’s homepage
  3. The PyMol Tutorial of KB Wong

I’m looking forward to comments, suggestions and possible problems you have with this guide.

Known problems with this guide:

  1. Clipping with the mouse wheel does not work. SHIFT-Left-Click and moving the mouse does the clipping fine, however. Look here for a quick tutorial.

New series: Science Tips

Finally, I’ll publish he first science related article in this blog. When I originally started this website I thought there would be much more science on it, as this is what I do for work and I really love it. However, in contrast to video tips, articles about science – regardless on what topic – do need much more effort and time and latter is very rare in the moment.

With the following entry I’ll start a series about scientific programs, which should help scientist in their daily life. There is vast majority of software out there and I’ll try to pick out the few I find most usefully… It won’t be only about the software itself, but also about useful tips around it… I hope, it will bes useful for you. If so, pleas let me know in the comments.

Jan