Skip to content

Commit

Permalink
setLigandInteractions in protein-ligand interactions
Browse files Browse the repository at this point in the history
  • Loading branch information
karolamik13 committed Oct 21, 2023
1 parent 6c0f6ef commit 57ad214
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions prody/proteins/interactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3780,6 +3780,22 @@ def getAtoms(self):

return self._atoms


def setLigandInteractions(self, atoms, interaction):
"""Replace protein-ligand interactions
for example byb using getLigandInteractions() with filters to select particular ligand.
:arg atoms: an Atomic object from which residues are selected
:type atoms: :class:`.Atomic`
:arg interactions: list of interactions
:type interactions: list
"""

self._interactions_traj = interaction
self._atoms = atoms
LOGGER.info('Protein-ligand interactions are replaced.')


def getLigandInteractionsNumber(self, **kwargs):
"""Return the number of interactions per each frame. Number of interactions can
Expand Down

0 comments on commit 57ad214

Please sign in to comment.