Skip to content

Commit

Permalink
Fix XPLOR-NIH hydrogen bond geometry restarint (HBDA) (2n24)
Browse files Browse the repository at this point in the history
  • Loading branch information
yokochi47 committed Feb 1, 2024
1 parent 2b5f7a5 commit e98f86d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion wwpdb/utils/nmr/mr/XplorMRParserListener.py
Original file line number Diff line number Diff line change
Expand Up @@ -7717,7 +7717,7 @@ def exitHbond_assign(self, ctx: XplorMRParser.Hbond_assignContext): # pylint: d
for atom1, atom2, atom3 in itertools.product(self.atomSelectionSet[0],
self.atomSelectionSet[1],
self.atomSelectionSet[2]):
if isLongRangeRestraint([atom1, atom2, atom3], self.__polySeq if self.__gapInAuthSeq else None):
if isLongRangeRestraint([atom1, atom2], self.__polySeq if self.__gapInAuthSeq else None):
continue
if self.__debug:
print(f"subtype={self.__cur_subtype} (HBDA) id={self.hbondRestraints} "
Expand Down
5 changes: 5 additions & 0 deletions wwpdb/utils/nmr/mr/XplorMRReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,11 @@ def parse(self, mrFilePath, cifFilePath=None, isFilePath=True,


if __name__ == "__main__":
reader = XplorMRReader(True)
reader.setDebugMode(True)
reader.parse('../../tests-nmr/mock-data-remediation/2n24/2n24-trimmed.mr',
'../../tests-nmr/mock-data-remediation/2n24/2n24.cif')

reader = XplorMRReader(True)
reader.setDebugMode(True)
reader_listener, _, _ =\
Expand Down

0 comments on commit e98f86d

Please sign in to comment.