Skip to content

Commit

Permalink
removeHeterogens() returns the Residues that were removed (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
peastman authored Nov 4, 2024
1 parent b2cd2c4 commit 66f52de
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pdbfixer/pdbfixer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1332,6 +1332,10 @@ def removeHeterogens(self, keepWater=True):
keepWater : bool, optional, default=True
If True, water molecules will not be removed.
Returns
-------
a list of Residue objects that were removed
Examples
--------
Expand All @@ -1355,6 +1359,7 @@ def removeHeterogens(self, keepWater=True):
modeller.delete(toDelete)
self.topology = modeller.topology
self.positions = modeller.positions
return toDelete

def addMissingHydrogens(self, pH=7.0, forcefield=None):
"""Add missing hydrogen atoms to the structure.
Expand Down

0 comments on commit 66f52de

Please sign in to comment.