We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f54f67 commit 6da2cdaCopy full SHA for 6da2cda
1 file changed
openfold/np/protein.py
@@ -252,9 +252,9 @@ def add_pdb_headers(prot: Protein, pdb_str: str) -> str:
252
out_pdb_lines.append(f"REMARK {remark}")
253
254
parents_per_chain = None
255
- if(prot.parents is not None):
+ if(prot.parents is not None and len(prot.parents) > 0):
256
parents_per_chain = []
257
- if(prot.parents_chain_index is not None and len(prot.parents_chain_index) > 0):
+ if(prot.parents_chain_index is not None):
258
cur_chain = prot.parents_chain_index[0]
259
parent_dict = {}
260
for p, i in zip(prot.parents, prot.parents_chain_index):
0 commit comments