Class PositionSpecificExchange

java.lang.Object
org.rcsb.strucmotif.domain.query.PositionSpecificExchange

public class PositionSpecificExchange extends Object
Defines a position-specific exchange for a particular position in the query structure.
  • Constructor Details

    • PositionSpecificExchange

      public PositionSpecificExchange(LabelSelection labelSelection, ResidueType... residueTypes)
      Parameters:
      labelSelection - selector of the referenced position
      residueTypes - all allowed types (must include original type if still allowed)
      See Also:
    • PositionSpecificExchange

      public PositionSpecificExchange(LabelSelection labelSelection, Set<ResidueType> residueTypes)
      Constructs a new position-specific exchange.
      Parameters:
      labelSelection - selector of the referenced position
      residueTypes - all allowed types (must include original type if still allowed)
  • Method Details

    • getLabelSelection

      public LabelSelection getLabelSelection()
      The position this exchange references.
      Returns:
      the LabelSelection of a residue
    • getResidueTypes

      public Set<ResidueType> getResidueTypes()
      The set of allowed component types at that position. Must explicitly include the original residue type if that should still be allowed.
      Returns:
      all types that can occur at this position