Open Access

CRANKITE: A fast polypeptide backbone conformation sampler

Source Code for Biology and Medicine20083:12

DOI: 10.1186/1751-0473-3-12

Received: 04 January 2008

Accepted: 24 June 2008

Published: 24 June 2008



CRANKITE is a suite of programs for simulating backbone conformations of polypeptides and proteins. The core of the suite is an efficient Metropolis Monte Carlo sampler of backbone conformations in continuous three-dimensional space in atomic details.


In contrast to other programs relying on local Metropolis moves in the space of dihedral angles, our sampler utilizes local crankshaft rotations of rigid peptide bonds in Cartesian space.


The sampler allows fast simulation and analysis of secondary structure formation and conformational changes for proteins of average length.


One important challenge of structural protein modeling is an efficient sampling technique for rapid search through the enormous conformational space [1]. Monte Carlo (MC) simulations, along with molecular dynamics, are among the most commonly used methods of sampling conformational space [2]. Because peptide bonds are rigid and flat, MC simulations are often performed in the space of dihedral ϕ-ψ angles, which reduces the number of degrees of freedom and speeds up simulations [3]. In addition, the conformations of just a few amino acids are perturbed locally on each step, leaving the rest of the chain intact, which increases the acceptance probability of the attempted moves and the efficiency of Metropolis MC procedure [4].

As an alternative to simulations in dihedral space, we modeled rigid peptide bonds explicitly and used local crankshaft rotations in Cartesian coordinates to displace them. An important feature of our model is the elasticity of the alpha carbon valence geometry. With flexible alpha carbon valence angles, it becomes possible to use crankshaft moves inspired by earlier Metropolis MC studies of large-scale DNA properties [5, 6]. Our polypeptide model features all-atom representations of the polypeptide backbone as well as beta-carbon atoms. Other side-chain atoms are omitted from consideration. We also draw on parallel tempering (replica exchange) [7] to speed up equilibration of the system when necessary. A detailed description of the model is provided in our earlier publication [8].


In our model, the primary descriptors of the polypeptide chain conformation are the orientations of the peptide bonds in the laboratory frame (Fig. 1A). For a chain of N amino acids the orientations of the peptide bonds are specified by the orthonormal triplets, (x i , y i , z i ), i = 0, ..., N. The vector z i points in the direction from C α i MathType@MTEF@5@5@+=feaafiart1ev1aaatCvAUfKttLearuWrP9MDH5MBPbIqV92AaeXatLxBI9gBaebbnrfifHhDYfgasaacPC6xNi=xH8viVGI8Gi=hEeeu0xXdbba9frFj0xb9qqpG0dXdb9aspeI8k8fiI+fsY=rqGqVepae9pg0db9vqaiVgFr0xfr=xfr=xc9adbaqaaeGaciGaaiaabeqaaeqabiWaaaGcbaGaee4qam0aa0baaSqaaiabeg7aHbqaaiabdMgaPbaaaaa@3009@ (alpha carbon of amino acid i) to C α i + 1 MathType@MTEF@5@5@+=feaafiart1ev1aaatCvAUfKttLearuWrP9MDH5MBPbIqV92AaeXatLxBI9gBaebbnrfifHhDYfgasaacPC6xNi=xH8viVGI8Gi=hEeeu0xXdbba9frFj0xb9qqpG0dXdb9aspeI8k8fiI+fsY=rqGqVepae9pg0db9vqaiVgFr0xfr=xfr=xc9adbaqaaeGaciGaaiaabeqaaeqabiWaaaGcbaGaee4qam0aa0baaSqaaiabeg7aHbqaaiabdMgaPjabgUcaRiabigdaXaaaaaa@31DB@ . The distance between the alpha carbons is fixed and equal to 3.8 Å for a peptide bond in trans conformation. The peptide bond atoms lie on the yz planes, with backbone geometry corresponding to the classical average bond lengths and angles [9]. The direction of the Cα-Cβ bond corresponds to tetrahedral valence geometry and chirality of L-amino acids, see Fig. 1A. The Cα-Cβ bond length is equal to b = 1.531 Å [9].
Figure 1

(A) Polypeptide model. The orientations of perfectly planar and rigid peptide bonds are given by the orthonormal triplets (x, y, z), with z pointing along the Cα-Cα direction. Other peptide bond atoms lie in the plane yz. The position of the side-chain atoms R is specified by the vectors n and c. (B) Local Metropolis moves. Two types of moves are used in this work: a crankshaft rotation around the line connecting 2 Cα atoms in the middle of the chain, and a random rotation at the termini around a random axis passing through the Cα atom. From Podtelezhnikov and Wild (2005) [8].

To obtain the canonical ensemble of polypeptide conformations, we developed a novel Metropolis Monte Carlo procedure. Each new chain conformation was generated from the previous one by applying a move to a randomly chosen chain segment containing one or two adjacent peptide bonds. Each move was local and the conformation of the rest of the chain was not altered. Local moves are extremely important in achieving an efficient sampling of the polypeptide conformational space [4]. Two types of moves used in our procedure were random rotations by a small uniformly distributed angle. The move of the first type was a crankshaft rotation of the peptide bonds between randomly picked i and j, with the line connecting C α i MathType@MTEF@5@5@+=feaafiart1ev1aaatCvAUfKttLearuWrP9MDH5MBPbIqV92AaeXatLxBI9gBaebbnrfifHhDYfgasaacPC6xNi=xH8viVGI8Gi=hEeeu0xXdbba9frFj0xb9qqpG0dXdb9aspeI8k8fiI+fsY=rqGqVepae9pg0db9vqaiVgFr0xfr=xfr=xc9adbaqaaeGaciGaaiaabeqaaeqabiWaaaGcbaGaee4qam0aa0baaSqaaiabeg7aHbqaaiabdMgaPbaaaaa@3009@ and C α j MathType@MTEF@5@5@+=feaafiart1ev1aaatCvAUfKttLearuWrP9MDH5MBPbIqV92AaeXatLxBI9gBaebbnrfifHhDYfgasaacPC6xNi=xH8viVGI8Gi=hEeeu0xXdbba9frFj0xb9qqpG0dXdb9aspeI8k8fiI+fsY=rqGqVepae9pg0db9vqaiVgFr0xfr=xfr=xc9adbaqaaeGaciGaaiaabeqaaeqabiWaaaGcbaGaee4qam0aa0baaSqaaiabeg7aHbqaaiabdQgaQbaaaaa@300B@ as the rotation axis (Fig. 1B). We applied the same rotation to the triplets (x i , y i , z i ) through (xj-1, yj-1, zj-1) and, then calculated the new positions of the backbone atoms. As a result, some or all atoms of the amino acids i though j were displaced while the peptide bonds remained planar. The move of the second type involved a rigid-body rotation of one or two peptide bonds at one of the chain termini picked randomly with rotation axis passing through the alpha carbon in a random direction (Fig. 1B). In the current implementation, up to 4 peptide bonds are rotated on each step. It is important that in this scheme any rotation and its inverse are picked with equal probability.

This Metropolis procedure in Cartesian space would be impossible without making the alpha carbon valence geometry flexible in our model. This is an extra degree of freedom that is usually fixed in dihedral space simulations. The dihedral space simulations, however, require complex computations of dihedral angle moves (so called "re-bridging" or "loop-closure") so that the structure only perturbed locally [10, 11]. In addition, sampling in dihedral space require the calculation of a Jacobian correction to satisfy the microscopic reversibility principle and achieve unbiased sampling of dihedral angles [12, 13]. The crankshaft rotations in Cartesian space are, on the other hand, trivially reversible and proposed with equal probabilities. Therefore, the Metropolis acceptance criterion did not require the Jacobian correction. In our previous work, this was further validated by demonstrating unbiased sampling of ϕ-ψ angles using crankshaft rotations [8]. We believe that the simplicity of our Metropolis MC procedure is well worth adding of an extra degree of freedom to our model.

Crankshaft rotations have been used in polymer simulations for decades [14]. Recently, Betancourt [15] wrongly suggested that crankshaft rotations require a correction in the Metropolis acceptance rate to achieve proper sampling of dihedral and bond angles. This paper erroneously treated dihedral and bond angles as multi-dimensional Cartesian space rather than regular polar coordinates. In fact, no correction is necessary and crankshaft rotations achieve proper sampling automatically.

We implemented simplified interaction potentials between backbone atoms and side-chains. Van der Waals interactions were mimicked by hard-sphere repulsion between atoms. Hydrogen bonding interactions were modeled by square-well potentials. To simulate interactions between side-chains, we specified Go-type potentials [16] between the Cβ atoms that were explicitly implemented in our model.

Sampling results are produced in a PDB format ready to be analyzed and visualized by a variety of available tools. The program also allows monitoring contacts between residues, hydrogen bonding patterns, radius of gyration, etc. during simulations. This suite also contains helper programs to create initial conformations by specifying arbitrary dihedral angles and to calculate contact maps and dihedral angles in the simulated trajectory. CRANKITE is implemented in ANSI C. It has been tested to compile with GCC, Sun Studio, and MIPSPro compilers and run under Linux, Solaris, and IRIX. Parallel tempering for the conformation sampler has been implemented using MPI 1.2 and tested on a Sun NETRA X1 Cluster Grid.


The package provides a Makefile recognized by GNU make (or gmake), which builds the suite. Most programs in the suite are controlled through various options given on the command line. Invalid options (or the valid option "-h") trigger the output of usage notes. The following programs are provided in the suite from most to least important.


The Metropolis polypeptide backbone conformation sampler. A very short simulation can be run by using a command like

./peptide -r 1000x25 -t 201 d1ctf__.pdb

This will read the initial conformation from file d1ctf__.pdb, perform 25,000 Metropolis moves, while recording a contact map and a snapshot conformation every 1000 steps. The output will have 25 contact maps and 25 snapshots. To get help with more options, use "./peptide -h".


The same as peptide, but compiled for parallel-tempered simulations under MPI.


Calculates backbone dihedrals for polypeptides in a PDB file. The valence geometry of each CA atom is characterized in terms of N-CA-C valence angle τ and normalized solid angle formed by three bonds with heavy atoms. The solid angle is positive for L-amino acids and negative for D-amino acids. Side-chain dihedral angles χ1 are also reported. Other calculated characteristics of local polypeptide conformation include CA-CA and CB-CB distances between adjacent residues, pseudo-dihedral angles CB-CA-CA-CB, etc.


Converts dihedrals to a 3D-structure in PDB format. This program may be used to create an arbitrary initial conformation for peptide. Each line of the input should start from a 1-letter residue id and dihedral angles ϕ-ψ separated by spaces, e.g. "Q -57 -47". Optionally, valence angle τ and cis/trans angle ω can be given in the fourth and fifth positions. This program is an approximate inverse of rama and one can pipe rama output through lipa to recreate the original structure. This restoration is not ideal, because lipa only uses values of ϕ, ψ, and τ.


Calculates a contact map for a protein structure in a PDB file. Contacts are defined by a cut-off distance between CA or CB atoms. Some of this functionality is also integrated in peptide. The program can also produce a distance map.


Produces a mean structure with B-factors for the multiple models in an NMR-style PDB file. Calculation of B-factors for a simulation trajectory is reliable only if the trajectory is very short (less than 100 steps per residue).


Basic statistical pipe tool to calculate means, standard deviations, statistical inefficiencies and extreme values for a sequence of numbers separated by whitespace.

Merges and sorts output files that are produced during a Sun MPI parallel-tempered run using "mprun -B". The files to be merged should be listed on the command line. The script and the merg executable are useful only on Sun clusters.

An example script to set up Contrastive Divergence learning (see below) from a dataset of PDB structures. The script uses 2 parameters: the number of available cluster nodes and a file with the list of PDB id's. This script distributes tasks over cluster nodes using PBS (Portable Batch System). Each node receives a PBS job diverge.pbs.

PDB viewer produces a stereo pair in a printable PostScript format. It uses a PDB file name as a command line parameter. PDB files are parsed by the oops executable that is called from the script.

By default, all the programs read data from the standard input (stdin) and write to the standard output (stdout), so that one can use them in a pipeline. If a file name is given on the command line, the input is redirected from this file. The option "-o filename" allows one to redirect the output to a file. This is an example of a pipeline that involves most programs in the suite

./rama d1ctf__.pdb | ./lipa | ./peptide -r 500x10 | ./befa | ./coma

Here, rama will calculate dihedral angles for d1ctf__ and pass them to lipa to recreate a 3d structure, which is passed to peptide for a short simulation producing 10 snapshots, then befa averages them, and finally coma produces a contact map for the average structure.

We implemented an alternative way of setting initial conformation for peptide. One can enter a sequence of residues directly on the command line, e.g.,

./peptide -r 4096x200 ABCDEFGHabcdefgh

This will run simulations on the 16-residue polypeptide, starting from the first 8 residues in alpha-helical state and the last 8 residues in beta-strand conformation.

The default force-field used by peptide includes hard-core van der Waals repulsions and square-well interpeptide hydrogen bonding. One can also specify Go-type interactions between side-chains by providing a regularized contact map. For example,

./peptide -r 4096x200 -p ABCDEFGHABCDEFGH

where the file (provided in the package) contains the regularized contact map corresponding to 16-residue beta-hairpin. The above example starts simulations from alpha-helical conformation and turns it into a beta-hairpin in less than 15 seconds on a 3.2 GHz Pentium D system.

The peptide's option "-p" is perhaps the most powerful option, which allows one to control many parameters of the program, including force-field constants. This option is intended to be customizable with flexible format. To learn more about this option in the current version, we refer the reader to the source code.

Application internals

The peptide backbone sampler and most of helper programs are implemented in ANSI C. A Makefile to be used with GNU make was tested with GNU, Sun Studio, and MIPS Pro C compilers. Below we describe some details of the Metropolis sampler implementation.


Mostly contains the main simulation loop and its setup from command line parameters. Other tasks implemented in this file include temperature setup and updates for parallel-tempering or annealing simulations.


Contains the implementation of the Metropolis procedure including the initial conformation setup and updates by Metropolis moves. The major data structures are declared, allocated and initialized in this file.

triplet *xaa, *xaat;

are arrays of orthonormal triplets describing current and trial orientations of planar peptide bonds.

struct AA *aa, *aat;

are arrays of structures with current and trial individual amino acid descriptions and atomic coordinates.

double *erg, *ergt;

are arrays with current and trial pairwise interaction energies between amino acids.

int cranckshaft ();

implements crankshaft rotations.


Implements the polypeptide model with rigid planar peptide bonds with fixed bond lengths and angles. It also contains routines for input and output of coordinates in PDB format.

void carbonate_f (); or void carbonate_b;

places Cα based on previous or next Cα and peptide bond orientation.

void acidate ();

rebuilds amino acid atoms based on alpha carbon position and orientations of peptide bonds around it.

void amidorient ();

determines orientation of peptide bond between two amino acids.

void pdbrecord ();

outputs coordinates in PDB format.


Implements tests and measurements that are to be performed during simulations (e.g., radius of gyration, current total energy, or dihedral angles).


Contains the force field implementation. It implements interactions between amino acids by specifying interactions between their individual atoms that are included in the model. It also contains tests that depend on the force-field implementation.

double energy1 ();

returns energy of interactions inside a particular amino acid.

double energy2 ();

returns energy of interactions between two amino acids.


Implements conversions between standard 1- and 3-letter amino acid abbreviations.


Implements manipulation of orientation triplets (e.g., rotation matrices, matrix-triplet and matrix-vector multiplication, or Euler angles determination).


Implements vector routines (e.g., dot product, cross product, or dihedral angles).


It is not always easy to benchmark software that is designed with a particular purpose in mind. Biochemical software is not an exception. We were able to compare CRANKITE sampling performance with CNS, which is widely used in a variety of biochemical simulations ranging from structure refinement to torsion dynamics [17]. We compared the time it takes for both suites to bring two β-strands together forming an anti-parallel β-hairpin. In the initial conformation β-strands are separated by a 45° angle. The peptide contained 16 alanine residues. We used a Go-type potential between Cβ atoms of lateral β-hairpin neighbors to bias the sampling towards the formation of the β-hairpin. In CNS the biasing was achieved by means of soft pseudo-bonds between the Cβ atoms. The force constants of the biasing potential were identical in the CRANKITE and CNS simulations. In the CNS molecular dynamics simulations, the conformations resembling a β-hairpin started to appear after about 0.4 ns. With the aggressive choice of time step of 0.004 ps, the simulations took about 1 min on a 3.2 GHz Pentium D computer. In the CRANKITE Metropolis Monte Carlo simulations, β-hairpin conformations started to appear after about 100,000 steps. It took less than 2 seconds to complete this simulation run on the same system. Therefore, in this test, CRANKITE seems to be 30 times faster than CNS.

CRANKITE was designed to perform quick conversions between secondary structure elements. It converts a 16-residue α-helix into a β-hairpin in less than 1 million Metropolis moves (see Usage example above). Fig. 2 shows examples of dihedral angle evolution during these simulations. In the figure, after starting simulations with the dihedral angles corresponding to an α-helix, the residues 3, 4, 5, and 6 have adopted the angles corresponding to a β-sheet. These simulations took less than 15 seconds to complete. We were not able to complete this conversion using CNS. Although CNS is a great program for many biochemical tasks, CRANKITE excels in sampling secondary structure conversions.
Figure 2

Dihedral angle evolution. In these simulations a 16-mer polypeptide underwent conversion for an α-helix to a β-sheet conformation. Changes in dihedral angles for residues 3, 4, 5, 6 are shown in black, red, blue, and green respectively. Snapshots were collected every 4096 steps.


Using our efficient implementation of Metropolis Monte Carlo procedure for polypeptides, we were able to perform exhaustive sampling of the polyalanine conformations [8]. We have also applied this suite to study properties of interpeptide hydrogen bonding relying on a modern machine learning technique known as Contrastive Divergence [18]. This suite has also been used to simulate proteins of moderate length. We have also investigated the reconstruction of protein backbone conformations and secondary structure elements in atomic detail based on a prior prediction of the protein contact map and secondary structure (Podtelezhnikov and Wild, submitted). Our software demonstrates remarkable efficiency and reliability in performing these computer experiments and has the flexibility to be applied to many other biological problems. In releasing our software under the GNU General Public License we hope that others will contribute to its continuing evolution.


The suite is available under the terms of GNU General Public License from



This work was supported by the National Institutes of Health Grant Number 1 P01 GM63208.

Authors’ Affiliations

Keck Graduate Institute of Applied Life Sciences
Department of Physics, Michigan Technological University
Systems Biology Centre, University of Warwick


  1. Levinthal C: Are there pathways for protein folding?. Journal de Chimie Physique et de Physico-Chimie Biologique. 1968, 65: 44-45.Google Scholar
  2. Leach AR: Molecular modelling : principles and applications. 2001, Harlow, England ; New York, Prentice Hall, xxiv, 744 , [16] of plates-2ndGoogle Scholar
  3. Kolinski A, Skolnick J: Reduced models of proteins and their applications. Polymer. 2004, 45: 511-524. 10.1016/j.polymer.2003.10.064.View ArticleGoogle Scholar
  4. Elofsson A, Le Grand SM, Eisenberg D: Local moves: an efficient algorithm for simulation of protein folding. Proteins. 1995, 23: 73-82. 10.1002/prot.340230109.View ArticlePubMedGoogle Scholar
  5. Klenin KV, Vologodskii AV, Anshelevich VV, Dykhne AM, Frank-Kamenetskii MD: Computer simulation of DNA supercoiling. J Mol Biol. 1991, 217: 413-419. 10.1016/0022-2836(91)90745-R.View ArticlePubMedGoogle Scholar
  6. Podtelezhnikov AA, Mao CD, Seeman NC, Vologodskii A: Multimerization-cyclization of DNA fragments as a method of conformational analysis. Biophysical Journal. 2000, 79: 2692-2704.PubMed CentralView ArticlePubMedGoogle Scholar
  7. Geyer CJ: Markov chain Monte Carlo maximum likelihood: ; New York. Edited by: Keramidas EM. American Statistical Association; 1991:156-163.Google Scholar
  8. Podtelezhnikov AA, Wild DL: Exhaustive Metropolis Monte Carlo sampling and analysis of polyalanine conformations adopted under the influence of hydrogen bonds. Proteins-Structure Function and Bioinformatics. 2005, 61 (1): 94-104. 10.1002/prot.20513.View ArticleGoogle Scholar
  9. Engh RA, Huber R: Structure quality and target parameters. International Tables for Crystallography. Edited by: Rossman MG and Arnold E. 2001, Dordrecht Boston London, Kluwer Academic Publishers for the International Union of Crystallography, F: Crystallography of biological macromolecules: 382-392. 1stGoogle Scholar
  10. Go N, Scheraga HA: Ring closure and local conformational deformations of chain molecules. Macromolecules. 1970, 3: 178-187. 10.1021/ma60014a012.View ArticleGoogle Scholar
  11. Wedemeyer WJ, Scheraga HA: Exact analytical loop closure in proteins using polynomial equations. J Comput Chem J Comput Chem. 1999, 20: 819-844. 10.1002/(SICI)1096-987X(199906)20:8<819::AID-JCC8>3.0.CO;2-Y.View ArticleGoogle Scholar
  12. Dodd LR, Boone TD, Theodorou DN: A concerted rotation algorithm for atomistic Monte Carlo simulation of polymer melts and glasses. Molecular Physics. 1993, 78: 961-996. 10.1080/00268979300100641.View ArticleGoogle Scholar
  13. Hoffmann D, Knapp EW: Protein dynamics with off-lattice Monte Carlo moves. Phys Rev E Stat Phys Plasmas Fluids Relat Interdiscip Topics. 1996, 53 (4): 4221-4224. 10.1103/PhysRevE.53.4221.PubMedGoogle Scholar
  14. Binder K: Monte Carlo and molecular dynamics simulations in polymer science. 1995, New York, Oxford University Press, xiv, 587 p.Google Scholar
  15. Betancourt MR: Efficient Monte Carlo trial moves for polypeptide simulations. J Chem Phys. 2005, 123: 174905-10.1063/1.2102896.View ArticlePubMedGoogle Scholar
  16. Go N: Theoretical studies of protein folding. Annu Rev Biophys Bioeng. 1983, 12: 183-210. 10.1146/ ArticlePubMedGoogle Scholar
  17. Brunger AT, Adams PD, Clore GM, DeLano WL, Gros P, Grosse-Kunstleve RW, Jiang JS, Kuszewski J, Nilges M, Pannu NS, Read RJ, Rice LM, Simonson T, Warren GL: Crystallography & NMR system: A new software suite for macromolecular structure determination. Acta Crystallogr D Biol Crystallogr. 1998, 54: 905-921. 10.1107/S0907444998003254.View ArticlePubMedGoogle Scholar
  18. Podtelezhnikov AA, Ghahramani Z, Wild DL: Learning about protein hydrogen bonding by minimizing contrastive divergence. Proteins. 2007, 66: 588-599. 10.1002/prot.21247.View ArticlePubMedGoogle Scholar


© Podtelezhnikov and Wild; licensee BioMed Central Ltd. 2008

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 (, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.