Molecule.from_pdb_with_smiles()
warns about the pdb having unspecified stereochemistry
#1000
Labels
Molecule.from_pdb_with_smiles()
warns about the pdb having unspecified stereochemistry
#1000
Describe the bug
Molecule.from_pdb_and_smiles
gives a spurious warning about the PDB file having unspecified stereochemistry. This is spurious because the whole purpose of the method is to work around this limitation of the PDB format. I'm worried that the warning will be confusing to users.To Reproduce
This succeeds, but gives a spurious warning.
Output
I've added line breaks for clarity
This is a very confusing warning, as the
from_pdb_and_smiles
method has theallow_undefined_stereo
argument. I'm worried that users will see this error and think that they've done something wrong or that the toolkit has a bug and is unable to assign stereochemistry to the PDB from the SMILES, when in fact this is raised in the course of reading the PDB, before the SMILES is processed.Computing environment (please complete the following information):
conda list
Additional context
The offending call to
from_rdkit
is made here:https://github.com/openforcefield/openff-toolkit/blob/cb46142b84690103b60dbf2de12cd65bcd3d74ea/openff/toolkit/utils/toolkits.py#L2910-2915
The text was updated successfully, but these errors were encountered: