Skip to content

Commit

Permalink
Rely on _pdbx_branched_scheme.pdb_asym_id due to carbohydrate remedia…
Browse files Browse the repository at this point in the history
…tion (7yhh)
  • Loading branch information
yokochi47 committed Jan 29, 2024
1 parent 6b4eff7 commit 07bb358
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions wwpdb/utils/nmr/mr/CnsMRReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,11 @@ def parse(self, mrFilePath, cifFilePath=None, isFilePath=True,


if __name__ == "__main__":
reader = CnsMRReader(True)
reader.setDebugMode(True)
reader.parse('../../tests-nmr/mock-data-remediation/7yhh/all.tbl',
'../../tests-nmr/mock-data-remediation/7yhh/7yhh.cif')

reader = CnsMRReader(True)
reader.setDebugMode(True)
reader_listener, _, _ =\
Expand Down
4 changes: 2 additions & 2 deletions wwpdb/utils/nmr/mr/ParserListenerUtil.py
Original file line number Diff line number Diff line change
Expand Up @@ -2980,7 +2980,7 @@ def coordAssemblyChecker(verbose=True, log=sys.stdout,
'branched': [{'name': 'asym_id', 'type': 'str', 'alt_name': 'chain_id'},
{'name': 'pdb_seq_num', 'type': 'int', 'alt_name': 'seq_id'},
{'name': 'mon_id', 'type': 'str', 'alt_name': 'comp_id'},
{'name': 'auth_asym_id', 'type': 'str', 'alt_name': 'auth_chain_id'},
{'name': 'pdb_asym_id', 'type': 'str', 'alt_name': 'auth_chain_id'},
{'name': 'auth_seq_num', 'type': 'int', 'alt_name': 'auth_seq_id'},
{'name': branchedPdbMonIdName, 'type': 'str', 'alt_name': 'auth_comp_id', 'default-from': 'mon_id'}
],
Expand Down Expand Up @@ -4047,7 +4047,7 @@ def to_np_array(a):
has_ins_code = cR.hasItem('pdbx_branch_scheme', 'pdb_ins_code')

dataItems = [{'name': 'asym_id', 'type': 'str', 'alt_name': 'label_asym_id'},
{'name': 'auth_asym_id', 'type': 'str'},
{'name': 'pdb_asym_id', 'type': 'str', 'alt_name': 'auth_asym_id'},
{'name': 'auth_seq_num', 'type': 'int', 'alt_name': 'alt_seq_id'},
{'name': 'pdb_seq_num', 'type': 'int', 'alt_name': 'auth_seq_id'},
{'name': 'num', 'type': 'int', 'alt_name': 'seq_id'},
Expand Down

0 comments on commit 07bb358

Please sign in to comment.