Open spadavec opened 2 years ago
Hi - thanks for reporting this problem. I confirm that I also see this when I run ligandswap using the example input files. This error occurs for sire 2023.0.0, but not for sire 2022.3.0 (this version has another error, which relates to this issue #381).
The problem is a regression error that we have introduced in 2023.0.0 as part of 2023.X refurbishment project we are undertaking. This is a program to modernise Sire. The 2023.0.0 version is a pre-release, so not completely stable. We will make sure to fix this problem for the proper release, which will be 2023.1.0 (likely available early in 2023).
Until then, we recommend that sire < 2023.0 is used for production. This can be installed using;
conda uninstall sire
conda install -c michellab "sire<2023.0"
However, in your case, this will install sire 2022.3.0, which suffers from the error described in #381. To solve this, apply the fix as described in that issue. You would just need to edit the LSRC.py
file as described in that fix.
Sorry that this is a problem for you and that the fix isn't great. As far as we know, there are very few people using waterswap or ligandswap now, and so this code has been allowed to bitrot while we concentrated on the parts of Sire needed to support BioSimSpace.
p.s. I forget to say that ligandswap may not be the best method to calculate relative binding free energies (it is quite an old method now). You may have more success calculating relative free energies using molecular dynamics simulations. BioSimSpace provides wrappers that make it easier to set up and run molecular dynamics free energy calculations using Amber, Gromacs or SOMD. You can find instructions on how to do this on the BioSimSpace website. You want the "advanced/alchemistry" workshop that is on the notebook server.
When I run the FM1 tutorial example with the following execution:
Using the files available on the sire website, the calculation seems to proceed fine until the LSRC system constraints are created...
Any idea what the problem is?