AMBER Archive (2004)

Subject: Re: AMBER: leap - orientation of sequenced residues

From: David A. Case (
Date: Tue Feb 03 2004 - 11:44:50 CST

On Mon, Feb 02, 2004, Sarah Wittkopp wrote:
> I am trying to determine where in the leap source code the orientation
> between residues that are joined/sequenced together is specified - based
> on the prep files.
> For example, if I used the command in leap " peptide = seq { ALA ALA } "
> where in the source code would it define how to orient these two residues?
> It was clear in the old prep, edit, link style that it was explicitly
> based on overlaying of the dummy atoms with the main chain atoms of the
> previous residue, but I have not explicitly found this in the leap code.

The routine you want is ModelAssignTorsionsAround(), in model.c. You will
also want to turn on debug in LEaP (instructions for amber8 here, slightly
different for earlier versions):

   cd $AMBERHOME/src/leap/src/leap
   make clean
   edit the Makefile, to add -DDEBUG to the ".c.o" rule at the top
   make t
   mv teLeap $AMBERHOME/exe
Then you can run tleap, and debug mode will be turned on. Commands for tleap
would look like this:

     debugOn model.c <-- will turn on debug output for routine in that file
     b = sequence { OME GB }

At this point, you will see a lot of detail about how the superposition is
being done. I'm not sure whether this will be enough or not. You can also
look at the comments in ModelAssignTorsionsAround(). Be sure that the
hybridization of all of your atoms is defined correctly.

It would be great if you could post a simple case that fails. This should
include the exact leap commands that were used, any input files, and an
example of both the pdb file leap creates _and_ a "good" pdb file that
has the correct coordinates (presumably constructed by some other program).

..hope this helps...thanks for your help....dac


================================================================== David A. Case | e-mail: Dept. of Molecular Biology, TPC15 | fax: +1-858-784-8896 The Scripps Research Institute | phone: +1-858-784-9768 10550 N. Torrey Pines Rd. | home page: La Jolla CA 92037 USA | ================================================================== ----------------------------------------------------------------------- The AMBER Mail Reflector To post, send mail to To unsubscribe, send "unsubscribe amber" to