Class LabelSelection

java.lang.Object
org.rcsb.strucmotif.domain.structure.LabelSelection
All Implemented Interfaces:
Selection

public class LabelSelection extends Object implements Selection
Identifies a residue unambiguously by label_asym_id, struct_oper_id, and label_seq_id. Basically the 'natural' way to reference residues.
  • Constructor Details

    • LabelSelection

      public LabelSelection(String labelAsymId, String structOperId, int labelSeqId)
      Construct a label selection.
      Parameters:
      labelAsymId - the chain of interest
      structOperId - the operation of interest
      labelSeqId - the sequence position of interest
  • Method Details

    • getLabelAsymId

      public String getLabelAsymId()
      The chain of interest. Corresponds to 'label_asym_id' in mmCIF.
      Returns:
      a String
    • getStructOperId

      public String getStructOperId()
      Description copied from interface: Selection
      The operator applied to the original coordinates.
      Specified by:
      getStructOperId in interface Selection
      Returns:
      an expression based on struct_oper_id
    • getLabelSeqId

      public int getLabelSeqId()
      The sequence position of interest. Corresponds to 'label_seq_id' in mmCIF.
      Returns:
      an int
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object