Skip to content

Commit 5dad032

Browse files
committed
fix: failed to create pdb when unkown base exists
1 parent 90461ca commit 5dad032

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

profold2/common/protein.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def to_pdb(prot: Protein, model: str = '1', parent: str = 'N/A') -> str:
215215
for atom_name, pos, mask, b_factor in zip(
216216
atom_types, atom_positions[i], atom_mask[i], b_factors[i]
217217
):
218-
if mask < 0.5:
218+
if len(atom_name) == 0 or mask < 0.5: # FIX: DX or X
219219
continue
220220

221221
record_type = 'ATOM'

0 commit comments

Comments
 (0)