source: EXAMPLES/Python/regularization.py@ e40e335

Last change on this file since e40e335 was e40e335, checked in by baerbaer <baerbaer@…>, 16 years ago

Initial import to BerliOS corresponding to 3.0.4

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/smmp/trunk@1 26dc1dd8-5c4e-0410-9ffe-d298b4865968

  • Property mode set to 100755
File size: 1.1 KB
Line 
1#!/usr/bin/env python
2#
3# Copyright 2007 Frank Eisenmenger, U.H.E. Hansmann,
4# Jan H. Meinke, Sandipan Mohanty
5#
6"""Minimize the energy of met-enkaphalin starting from a given structure using
7conjugate gradient.
8"""
9# Adds the source directory to Python's search path.
10import sys
11sys.path.append('../..')
12import smmp, universe, protein
13
14# Initialize the Universe to T=300K with the ECEPP/3 force field, no solvent
15# term (st = 0) and the sub directory SMMP/ as library path. Except for the
16# solvent term, these are the default values. Alternatively, we could have
17# written
18# myUniverse = universe.Universe(st=0)
19# to get the same result.
20myUniverse = universe.Universe(T=300, ff = 'ecepp3', st = 0, libdir ='SMMP/')
21# Create a new protein object from the sequence file ../enkefa.seq and
22# set the dihedral angles according to the values given in ../enkefa.var.
23p = protein.Protein('../1bdd.pdb')
24# Make myUniverse aware of p.
25myUniverse.add(p)
26
27maxNumberOfIterations = 10
28maxNumberOfSweepsPerIteration = 15000
29desiredPrecision = 1.0e-7
30
31smmp.regul(1, maxNumberOfIterations, maxNumberOfSweepsPerIteration, desiredPrecision)
Note: See TracBrowser for help on using the repository browser.