Skip to content

Commit 762111f

Browse files
committed
fix add missing residues error
1 parent 6bf10e1 commit 762111f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pdbfixer/pdbfixer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ def _addAtomsToTopology(self, heavyAtomsOnly, omitUnknownMolecules):
383383

384384
# Insert missing residues here.
385385

386-
if (chain.index, indexInChain) in self.missingResidues:
386+
if (chain.index, indexInChain) in self.missingResidues and residue in self.templates:
387387
insertHere = self.missingResidues[(chain.index, indexInChain)]
388388
endPosition = self._computeResidueCenter(residue)
389389
if indexInChain > 0:

0 commit comments

Comments
 (0)