Skip to content

Commit

Permalink
Merge pull request #570 from DimaMolod/patch-1
Browse files Browse the repository at this point in the history
work for custom templates with chains consisting only of HETATMs
  • Loading branch information
YoshitakaMo authored Feb 22, 2024
2 parents 06c775a + 267a127 commit 97160b3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions colabfold/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,9 @@ def _save_dict(self, out_file):
chain_idx = 1
for model in self.structure:
for chain in model:
label_asym_id = asym_id_auth_to_label[chain.get_id()]
out_file.write(f"{label_asym_id} {chain_idx}\n")
if chain.get_id() in asym_id_auth_to_label:
label_asym_id = asym_id_auth_to_label[chain.get_id()]
out_file.write(f"{label_asym_id} {chain_idx}\n")
chain_idx += 1
out_file.write("#\n")

Expand Down

0 comments on commit 97160b3

Please sign in to comment.