Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removeHeterogens() returns the Residues that were removed #316

Merged
merged 1 commit into from
Nov 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading