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

RelativeFEPSetup cannot handle list of smiles as input ligands #1155

Open
ijpulidos opened this issue Feb 7, 2023 · 0 comments · May be fixed by #1156
Open

RelativeFEPSetup cannot handle list of smiles as input ligands #1155

ijpulidos opened this issue Feb 7, 2023 · 0 comments · May be fixed by #1156

Comments

@ijpulidos
Copy link
Contributor

According to the documentation, RelativeFEPSetup should be able to handle a list of SMILES strings as input ligands but it makes the interpreter to freeze giving the following warnings:

Warning: Unable to set unknown read format (UNDEFINED) in input stream, using existing format (Canonical stereo SMILES)
Warning: Unable to open "Oc1ccccc1" for reading molecules.

Warning: Error reading molecule "" in Canonical stereo SMILES format.

And example code to reproduce the issue is as follows (Warning, this kinda kills the python interpreter, use at your own risk):

from perses.app.relative_setup import RelativeFEPSetup
from openmm import unit
phenol_smiles = "Oc1ccccc1"
paracetamol_smiles = "CC(=O)Nc1ccc(O)cc1"
input_smiles = [phenol_smiles, paracetamol_smiles]
fe_setup = RelativeFEPSetup(
                ligand_input=input_smiles,
                old_ligand_index=0,
                new_ligand_index=1,
                forcefield_files=["amber14/tip3p.xml"],
                small_molecule_forcefield="gaff-2.11",
                phases=["solvent"],
                solvent_padding=1.1 * unit.nanometers)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant