Package org.rcsb.strucmotif.domain.align
Class AtomCorrespondence
java.lang.Object
org.rcsb.strucmotif.domain.align.AtomCorrespondence
A wrapper which describes the correspondence between two collections of residues. Internally takes care of
converting (in some sense...) residues which atoms which coordinates into mere double[] containing 3D vectors to
align.
-
Constructor Summary
ConstructorsConstructorDescriptionAtomCorrespondence(List<Map<LabelAtomId, float[]>> reference, List<Map<LabelAtomId, float[]>> candidate, AtomPairingScheme atomPairingScheme) Finds the correspondence between reference and candidate. -
Method Summary
-
Constructor Details
-
AtomCorrespondence
public AtomCorrespondence(List<Map<LabelAtomId, float[]>> reference, List<Map<LabelAtomId, float[]>> candidate, AtomPairingScheme atomPairingScheme) Finds the correspondence between reference and candidate.- Parameters:
reference- reference containercandidate- candidate containeratomPairingScheme- how to pair atoms?
-
-
Method Details
-
getCenteredReferenceVectors
The centered vectors of the reference.- Returns:
- a collection of double[]
-
getReferenceCentroid
public float[] getReferenceCentroid()The centroid of the original reference coordinates.- Returns:
- a 3D vector
-
getCenteredCandidateVectors
The centered vectors of the candidate.- Returns:
- a collection of double[]
-
getCandidateCentroid
public float[] getCandidateCentroid()The centroid of the original candidate coordinates.- Returns:
- a 3D vector
-