|
__init__(self,
scaffold,
cell=None,
weight_rotate=0.5,
weight_translate=0.5,
translate_mu=0.25,
translate_sigma=1.0,
max_rotate=360.0,
temperatures=[ 300.0] ,
iterations=10000,
clash_penalty=50.0,
minimize_interval=None,
forcefield=14,
vdw_scale=1.0,
gravity=True,
gravity_weight=4.0,
logger=None)
Create a Metropolizer object |
|
|
|
setupGravity(self)
Pre-compute data for the gravity term |
|
|
int
|
getNumClashes(self,
struct)
Get the number of clashes for the proposed structure |
|
|
float
|
getClosestApproach(self,
coords)
Get the closest approach between the given set of coordinates and the
scaffold molecule or gravity center if no scaffold. |
|
|
float
|
getGravityEnergy(self,
target)
Evaluate the gravitational energy of the given target. |
|
|
float
|
|
|
simulate(self)
Run the Monte Carlo simulated annealing |
|
|
MonteCarloMolecule
|
getTargetMolecule(self,
candidate,
first,
last)
Select the molecule to move this iteration |
|
|
int
|
|
(float, float, float, float)
|
getEnergy(self,
candidate,
target=None)
Compute the total energy of the system |
|
|
bool
|
isAccepted(self,
old_energy,
new_energy)
Use the Metropolis equation to determine if the move is accepted |
|
|
int
|
|
|
log(self,
msg,
level=20)
Add a message to the log file |
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|