Skip to content

Commit

Permalink
Reconciled fix for 2m2p and 4a4g
Browse files Browse the repository at this point in the history
  • Loading branch information
yokochi47 committed Sep 6, 2024
1 parent 7423c76 commit e45eda3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions wwpdb/utils/nmr/NEFTranslator/NEFTranslator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2696,7 +2696,8 @@ def refresh_entity_assembly(_loop, _alt_chain_id_list):
for r in loop.data:
r[chain_id_col] = r[alt_chain_id_col]
# if len(alt_chain_id_set) == 1:
refresh_entity_assembly(loop, list(alt_chain_id_set))
if len(chain_id_set) <= len(alt_chain_id_set):
refresh_entity_assembly(loop, list(alt_chain_id_set))

elif len(chain_id_set) == 0 and 'Entity_ID' in loop.tags:
pre_tag = ['Entity_ID']
Expand All @@ -2711,11 +2712,12 @@ def refresh_entity_assembly(_loop, _alt_chain_id_list):
for r in loop.data:
r[chain_id_col] = r[entity_id_col]
# if len(alt_chain_id_set) == 1:
refresh_entity_assembly(loop, list(alt_chain_id_set))
if len(chain_id_set) <= len(alt_chain_id_set):
refresh_entity_assembly(loop, list(alt_chain_id_set))

# elif (len(alt_chain_id_set) == 1 and len(chain_id_set) == 1)\
# or (len(alt_chain_id_set) > len(chain_id_set)): # 5xv8, 2n7k
else:
elif len(chain_id_set) <= len(alt_chain_id_set):
refresh_entity_assembly(loop, list(alt_chain_id_set))

if 'Auth_asym_ID' in loop.tags and 'Auth_seq_ID' in loop.tags and coord_assembly_checker is not None:
Expand Down

0 comments on commit e45eda3

Please sign in to comment.