Package org.rcsb.strucmotif.align
Class QuaternionAlignmentService
java.lang.Object
org.rcsb.strucmotif.align.QuaternionAlignmentService
- All Implemented Interfaces:
AlignmentService
Align 2 sets of residues by a quaternion-based characteristic polynomial. Finds a rigid transformation that will move
the 2nd argument.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Pair<Transformation,Float> align(List<float[]> referencePoints, float[] referenceCentroid, List<float[]> candidatePoints, float[] candidateCentroid) Align two set of residues.align(List<Map<LabelAtomId, float[]>> reference, List<Map<LabelAtomId, float[]>> candidate, AtomPairingScheme atomPairingScheme) Aligns 2 sets of residues to one another.
-
Constructor Details
-
QuaternionAlignmentService
public QuaternionAlignmentService()
-
-
Method Details
-
align
public AlignmentResult align(List<Map<LabelAtomId, float[]>> reference, List<Map<LabelAtomId, float[]>> candidate, AtomPairingScheme atomPairingScheme) Description copied from interface:AlignmentServiceAligns 2 sets of residues to one another.- Specified by:
alignin interfaceAlignmentService- Parameters:
reference- the reference set of residuescandidate- the candidate set of residues to evaluateatomPairingScheme- the atom names to consider for each residue during alignment- Returns:
- an Alignment instance which provides the aligned instances, transformation operations and scores
-
align
public static Pair<Transformation,Float> align(List<float[]> referencePoints, float[] referenceCentroid, List<float[]> candidatePoints, float[] candidateCentroid) Align two set of residues. Must have equal size.- Parameters:
referencePoints- set of reference pointsreferenceCentroid- the centroid of reference pointscandidatePoints- set of candidate pointscandidateCentroid- the centroid of candidate points- Returns:
- pair of transformation and RMSD
-