chemosim-lab / ProLIF

Interaction Fingerprints for protein-ligand complexes and more
https://prolif.readthedocs.io
Apache License 2.0
361 stars 68 forks source link

Intramolecular Pi-hbond between the N-H of a peptide bond and residues with pi systems #159

Closed DipBobDar closed 1 year ago

DipBobDar commented 1 year ago

Thanks for your suggestion.

I wanted to check intramolecular interaction in a peptide and was initerested in the hbond-pi interactions between N-H in the peptide bond and pi-system residues like Tyr, Phe, Trp. Is it possible to use the existing format to do this or I need to do something else.

Thanks in advance.

Originally posted by @DipBobDar in https://github.com/chemosim-lab/ProLIF/issues/158#issuecomment-1722850131

cbouy commented 1 year ago

Ah yes then it's the opposite of what I had assumed in the previous thread. That would be:

class BackboneNHPi(plf.interactions.CationPi):
    def __init__(self):
        super().__init__(cation="[$([N;+0](-[H])-[C;X4]-[C^2]=O)]")

fp = plf.Fingerprint(interactions=["BackboneNHPi"])

And then you can use this fp fingerprint object for the analysis as shown in the tutorials.

Please close the issue if that answers your question

DipBobDar commented 1 year ago

Thanks a lot. That helps.