Animating a Molecular Knot

Reading time ~2 minutes

molecular knot from David Oppenheimer on Vimeo.

I read an interesting article about the design and synthesis of a molecular knot in Science by Danon et al.1, and I thought I would try to play around with the molecule in the molecular structure manipulation program PyMol. Here’s how I made the movie shown at the beginning of this post.

  • Get the structure file. The paper mentioned that they deposited the X-ray crystallography structure data in the public Cambridge Structural Database (CSD) under the Refcode entry, ODEQIA (CCDC Number, 1497422). I downloaded the structure file, which was in .cif format.

  • Convert the file to .pdb format. The Mercury software package can convert .cif files to .pdb format. Download Mercury, install it and open the .cif file. Go to File -> Save As... and choose PDB files for Files of type:. Give your file a name and click Save.

  • Open the .pdb file in PyMOL. Once you open the file in PyMOL, you have myriad possibilities for viewing and animating the molecule.

  • Format the molecule. I like to use a ball and stick format for small molecules so that I can see all the atoms. I have previously found a ball and stick color scheme that I like on the PyMOLwiki (one of the random images in the upper left). To format the molecule and make the movie shown at the beginning of this post, you can use the PyMOL script below. See the comments in the script for details.

  • Write the movie files. Either uncomment the mpng command before you run the scrip, or type mpng name-of-file-prefix to write your movie frames to a series of .png files.

  • Make the movie using ffmpeg. If you purchase a license for incentive PyMOL, you can save a movie from within PyMOL proper. Since I am using open-source PyMOL, I use the free program, ffmpeg to make my movies from the series of .png files produced by PyMOL. The settings I used are included in the script below.

Molecular Knot Movie

  1. Danon, J.J., A. Krüger, D.A. Leigh, J.F. Lemonnier, A.J. Stephens, I.J. Vitorica-Yrezabal and S.L. Woltering. 2017. Braiding a molecular knot with eight crossings. Science 355: 159-162. link to article 

Displaying a Protein-Protein Interaction Interface

How to show a protein-protein interaction surface using PyMOL Continue reading

Making a Protein Conformation Change Movie

Published on March 21, 2016

Small Molecule Movies in PyMol

Published on February 25, 2016