AMBER Archive (2004)

Subject: Re: AMBER: Leap

From: David A. Case (case_at_scripps.edu)
Date: Tue Nov 09 2004 - 11:00:38 CST


On Tue, Nov 09, 2004, Greg Kellogg wrote:

> Hi I am currently running Amber 7.0 on Redhat Linux. Is
> there anyway to setup tleap or xleap to run in a batch
> mode? I have 529 structures to convert into prmtop and
> inpcrd and I am looking for an easier way to do it.
>

Roughly, a C-shell script like this should get you started:

#!/bin/csh -f

foreach i ( *.pdb )

cat <<EOF > leap.in
source leaprc.ff03
x = loadpdb $i
saveamberparm x $i:r.top $i:r.crd
quit
EOF

tleap -f leap.in

endif

(Note: this is untested; modify it according to what you really need to do;
if you are unfamiliar with shell programming, you will probably have to do
some reading.)

...hope this helps...dac

-----------------------------------------------------------------------
The AMBER Mail Reflector
To post, send mail to amber_at_scripps.edu
To unsubscribe, send "unsubscribe amber" to majordomo_at_scripps.edu