Dear Jozsi,
Thank you for this quick feedback about the problem with water reported by my college Anne above. We really appreciate your reactivity.
Unfortunately, I observe another issue with the the versions 6.x and the major microspecies computations.
It is a problem using the MajorMicrospeciesPlugin class in custom java code. Maybe you can tackle this issue at the same time:
If I try to get the major microspecies for Cu2+ using the MajorMicrospeciesPlugin run() method, it returns false and I get the following error message: "Inconsistent molecular structure".
Here is the our code section:
----------------------------------------
[...]
Molecule mol = molFromStructure(structure);
phPlugin.setMolecule(mol);
phPlugin.setpH(pH);
if (phPlugin.run()) {
adjMolecule = phPlugin.getMajorMicrospecies();
adjStructure = MolExporter.exportToFormat(adjMolecule, "mol");
String warning = phPlugin.getWarningMessage();
if (warning != null && warning.length() > 0)
LOGGER.error("While adjusting pH: "
+ phPlugin.getWarningMessage());
return adjStructure;
} else { // Unable to adjust pH
LOGGER.error("Unable to adjust pH for id=: " + id + " "
+ phPlugin.getErrorMessage());
LOGGER.error("Structure causing problem:");
LOGGER.error(structure);
}
[...]
----------------------------------------
=> output with Marvin 6.1.0 and 6.1.3:
Unable to adjust pH for id=: XX Inconsistent molecular structure. [...]
=> output with Marvin 5.10.0:
<No error message>, the major microspecies (Cu2+ itself) is returned.
Here is our molfile for Cu2+ ("structure" string above):
----------------------------------------
Marvin 01130622122D
1 0 0 0 0 0 999 V2000
0.0000 0.0000 0.0000 Cu 0 2 0 0 0 0 0 0 0 0 0 0
M CHG 1 1 2
M END
----------------------------------------
If I load this molfile in MarvinSketch (5.10.0 or 6.1.0 or 6.1.3) and I perform "Calculations->Protonation->Major Microspecies", no error appears and Cu2+ is shown as result. So this error seems to be specific to the 6.x marvin versions and/or the way we use your API.
I understand that protonation of such a compound is not very relevant, but this is done in a batch procedure for many chemical compounds and I would expect the API to behave like the MarvinSketch in any cases.
Please let me know if you can reproduce this issue and if you can fix this.
Thank you for your support,
Best regards,
Thierry