Package Biskit :: Module TrajFlexSlave :: Class TrajFlexSlave
[hide private]
[frames] | no frames]

Class TrajFlexSlave

source code


Calculate the pairwise rmsd between frames of a trajectory.

Instance Methods [hide private]
  initialize(self, params)
Expects:
array __getFrames(self, f)
Load coordinate frames from file or take them from own cache
1|0 requested(self, i, j)
Checks if the rmsd of two frames i and j are to be calculated:
[float] calcRmsd(self, window, f1, f2)
Calulate the rmsd between two frame chunks.
[float] go(self, jobs)
Run job.
  reportError(self, msg, window)
Report errors.

Method Details [hide private]

initialize(self, params)

source code 

Expects:
 {'ferror':str,
  'trajMap':[int],
  'only_off_diagonal':1|0,
  'only_cross_member':1|0}
Parameters:

__getFrames(self, f)

source code 

Load coordinate frames from file or take them from own cache
Parameters:
  • f (str) - file name
Returns: array
coordiante frames

requested(self, i, j)

source code 

Checks if the rmsd of two frames i and j are to be calculated:
 requested( int_f1, int_f2 ) -> 1|0
Parameters:
  • i (int) - frame number
  • j (int) - frame number
Returns: 1|0
if the rms of the two frames is supposed to be calculated

calcRmsd(self, window, f1, f2)

source code 

Calulate the rmsd between two frame chunks.
Parameters:
  • window (((int, int),(int,int))) - start and end of two frame chunks within the whole trajectory
  • f1 (array) - frame chunk
  • f2 (array) - frame chunk
Returns: [float]
the rms between the frames

go(self, jobs)

source code 

Run job.
Parameters:
  • jobs ({((int,int),(int,int)) : (str, str)}) - { ((int,int),(int,int)) : (str, str) }, maps start and end position of two chunks of coordinate frames to the files where the two chunks are pickled.
Returns: [float]
the rms between the frames

reportError(self, msg, window)

source code 

Report errors.
Parameters:
  • msg (str) - error message
  • window (((int, int),(int,int))) - start and end of two frame chunks within the whole trajectory