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

Request to Use All Three VDW Presets in ProLIF #240

Closed
fajardo01 opened this issue Jan 29, 2025 · 1 comment
Closed

Request to Use All Three VDW Presets in ProLIF #240

fajardo01 opened this issue Jan 29, 2025 · 1 comment

Comments

@fajardo01
Copy link

I would like to request the ability to use all three Van der Waals (VdW) presets available (Specifically, I would like to use the mdanalysis, rdkit, and csd presets) in ProLIF for evaluating differences in interactions.

In the latest version of ProLIF, it appears that specifying the preset is not currently supported. Could you please help me with a way to specify the preset for VdW interactions?

@cbouy
Copy link
Member

cbouy commented Feb 4, 2025

Hi @fajardo01,

The addition of the van der Waals presets have not been released yet, but you can install the development version from github directly:

pip install 'git+https://github.com/chemosim-lab/ProLIF.git'

Once that's installed, you should be able to specify them individually:

fp = plf.Fingerprint(interactions=["VdWContact"], parameters={"VdWContact": {"preset": "rdkit"}})

If you want to calculate all of them in one go to have the results in the same dataframe, you can define your own interactions that subclass VdWContact (one for each preset):

from prolif.interactions import VdWContact

class MDAnalysisVdW(VdWContact):
    def __init__(self):
        super().__init__(preset="mdanalysis")

class RDKitVdW(VdWContact):
    def __init__(self):
        super().__init__(preset="rdkit")

class CSDVdW(VdWContact):
    def __init__(self):
        super().__init__(preset="csd")

fp = plf.Fingerprint(interactions=["MDAnalysisVdW", "RDKitVdW", "CSDVdW"])

Feel free to reopen the issue if you still need help on this.

@cbouy cbouy closed this as completed Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants