Skip to content

Commit

Permalink
More info in LigandInteractionsTrajectory docx
Browse files Browse the repository at this point in the history
  • Loading branch information
karolamik13 committed Oct 17, 2023
1 parent ada7437 commit aecfea2
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions prody/proteins/interactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3631,7 +3631,20 @@ def getTimeInteractions(self, filename=None, **kwargs):

class LigandInteractionsTrajectory(object):

"""Class for protein-ligand interaction analysis of DCD trajectory or multi-model PDB (Ensemble PDB)."""
"""Class for protein-ligand interaction analysis of DCD trajectory or multi-model PDB (Ensemble PDB).
This class is using PLIP to provide the interactions. Install PLIP before using it.
## Instalation of PLIP using conda:
>>> conda install -c conda-forge plip
## https://anaconda.org/conda-forge/plip
# https://github.com/pharmai/plip/blob/master/DOCUMENTATION.md
## Instalation using PIP:
>>> pip install plip
.. [SS15] Salentin S., Schreiber S., Haupt V. J., Adasme M. F., Schroeder M.
PLIP: fully automated protein–ligand interaction profiler
*Nucl. Acids Res.* **2015** 43:W443-W447. """

def __init__(self, name='Unknown'):

Expand All @@ -3657,7 +3670,6 @@ def calcLigandInteractionsTrajectory(self, atoms, trajectory=None, filename=None
:arg stop_frame: index of last frame to read
:type stop_frame: int """


try:
coords = (atoms._getCoords() if hasattr(atoms, '_getCoords') else
Expand Down Expand Up @@ -3772,3 +3784,4 @@ def parseLigandInteractions(self, filename):
self._interactions_nb_traj = [[len(sublist) if sublist else 0 for sublist in sublist] for sublist in data]

return data

0 comments on commit aecfea2

Please sign in to comment.