Skip to content

Commit

Permalink
Prefer using actual file extension over predictions for CYANA distanc…
Browse files Browse the repository at this point in the history
…e classification (6svh)
  • Loading branch information
yokochi47 committed Mar 21, 2024
1 parent 322ae87 commit 62ee99e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wwpdb/utils/nmr/mr/CyanaMRParserListener.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,10 +792,12 @@ def exitComment(self, ctx: CyanaMRParser.CommentContext):
self.__cur_dist_type = 'cco'
break
if ('upl' in text or 'upper' in text) and not ('lol' in text or 'lower' in text):
self.__cur_dist_type = 'upl'
if self.__file_ext != 'lol':
self.__cur_dist_type = 'upl'
break
if ('lol' in text or 'lower' in text) and not ('upl' in text or 'upper' in text):
self.__cur_dist_type = 'lol'
if self.__file_ext != 'upl':
self.__cur_dist_type = 'lol'
break
else:
break
Expand Down

0 comments on commit 62ee99e

Please sign in to comment.