belka.geom
Class Displacer

java.lang.Object
  extended by belka.geom.Displacer

public class Displacer
extends Object

The class calculates displacement vector between two given confomartions of a protein. Protein sequences are supposed to be aligned. Rigid blocks are supposed to be assigned.

Author:
Alexej Abyzov

Constructor Summary
Displacer(Chain chain1, Chain chain2)
          Object constructor.
 
Method Summary
 StringBuffer print(int staticGroup, double fraction)
          Returns string with values of displacement for each CA atom.
 StringBuffer printSimple()
          Returns string with values of displacement for each CA atom.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Displacer

public Displacer(Chain chain1,
                 Chain chain2)
Object constructor.

Parameters:
chain1 - chain with first conformation.
chain2 - chain with second conformation.
Method Detail

printSimple

public StringBuffer printSimple()
Returns string with values of displacement for each CA atom. The displacement is the vector between initial and final comformations.

Returns:
string with values of displacement for each CA atom.

print

public StringBuffer print(int staticGroup,
                          double fraction)
Returns string with values of displacement for each CA atom. The diplacement is a vector between initial and interpolated by angle structures. Amount of interpolation is controlled by parameter fraction.

Parameters:
staticGroup - id of static (not moving) block.
fraction - value of interpolation [0,1].
Returns:
string with values of displacement for each CA atom.