original_docstring: Compare to another `SeqPosition` to determine if they share the same reference sequence and strand.
docstring: Compare to another `SeqPosition` to determine if they share the same reference sequence and strand.
docstring_tokens: Compare to another ` SeqPosition ` to determine if they share the same reference sequence and strand .
code: def check_position_compatibility(self, p2):
          """Compare to another `SeqPosition` to determine if they share the same reference sequence and strand."""
  
          ref1, _ = self.get_absolute_position_in_reference()
          ref2, _ = p2.get_absolute_position_in_reference()
  
          if ref1 != ref2:
              raise PartSliceError('Reference sequences do not match.')
code_tokens: def check_position_compatibility ( self , p2 ) : ref1 , _ = self . get_absolute_position_in_reference ( ) ref2 , _ = p2 . get_absolute_position_in_reference ( ) if ref1 != ref2 : raise PartSliceError ( 'Reference sequences do not match.' )
short_docstring: Compare to another `SeqPosition` to determine if they share the same reference sequence and strand.
short_docstring_tokens: Compare to another ` SeqPosition ` to determine if they share the same reference sequence and strand .
comment: """Compare to another `SeqPosition` to determine if they share the same reference sequence and strand."""