Package org.rcsb.strucmotif.domain.motif
Class ResiduePairDescriptor
java.lang.Object
org.rcsb.strucmotif.domain.motif.ResiduePairDescriptor
Captures all properties of a residue pair (i.e. types, distances and angle).
-
Constructor Summary
ConstructorsConstructorDescriptionResiduePairDescriptor(ResidueType residueType1, ResidueType residueType2, DistanceType backboneDistance, DistanceType sideChainDistance, AngleType angle) Construct a residue pair descriptor capturing all properties of this pair. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAngle()Binned angle for this pair.Binned backbone distance for this pair.Residue type (label_comp_id) of first element.Residue type (label_comp_id) of second element.Binned side-chain distance for this pair.inthashCode()booleanWe have to keep track whether this descriptor should match an original one (i.e.toString()
-
Constructor Details
-
ResiduePairDescriptor
public ResiduePairDescriptor(ResidueType residueType1, ResidueType residueType2, DistanceType backboneDistance, DistanceType sideChainDistance, AngleType angle) Construct a residue pair descriptor capturing all properties of this pair.- Parameters:
residueType1- the first typeresidueType2- the second typebackboneDistance- the backbone distancesideChainDistance- the side-chain distanceangle- the angle
-
-
Method Details
-
getResidueType1
Residue type (label_comp_id) of first element.- Returns:
- a residue type
-
getResidueType2
Residue type (label_comp_id) of second element.- Returns:
- a residue type
-
getBackboneDistance
Binned backbone distance for this pair.- Returns:
- a distance type
-
getSideChainDistance
Binned side-chain distance for this pair.- Returns:
- a distance type
-
getAngle
Binned angle for this pair.- Returns:
- an angle type
-
equals
-
hashCode
public int hashCode() -
toString
-
isFlipped
public boolean isFlipped()We have to keep track whether this descriptor should match an original one (i.e. during a position-specific exchange) but was flipped in order to library contract (e.g. GH - HIS is replaced by ALA - will become AG).- Returns:
- true if flipped and special care must be taken during overlap computation (otherwise all overlap values would be mismatching)
-