You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Atom order might not be definitive when loading from a SMILES string when using RDKit. Specifically, the index of the atoms when loading from a SMILES string with rdkit may changed with different rdkit version. This may affect functions that rely on atom indices like mbuild.lib.recipes.Polymer. This issue is not imminent, but we probably need to assert the order when loading in a SMILES string to ensure we got when we expect when select a compound by its index. This issue is brought up by Jeffrey Wagner during the MoSDeF-OpenFF meeting.
Software versions
Which version of mBuild are you using? (python -c "import mbuild as mb; print(mb.__version__)")
Which version of Python (python --version)?
Which operating system?
The text was updated successfully, but these errors were encountered:
Nothing at the moment, I was thinking of implement some rudimentary sorting during the convert RDKit structure step to assert the orders are correct, but I have started nothing yet. This was something brought up by Jeff during one of our meeting with the OpenFF folks.
Gotcha yeah, I think this is a worthwhile issue since so many of our workflows are starting to use the loading from SMILES. I'll see if I can generate some code here to post that replicates the issue, to make sure it's still here.
Bug summary
Atom order might not be definitive when loading from a SMILES string when using RDKit. Specifically, the index of the atoms when loading from a SMILES string with rdkit may changed with different rdkit version. This may affect functions that rely on atom indices like
mbuild.lib.recipes.Polymer
. This issue is not imminent, but we probably need to assert the order when loading in a SMILES string to ensure we got when we expect when select a compound by its index. This issue is brought up by Jeffrey Wagner during the MoSDeF-OpenFF meeting.Software versions
python -c "import mbuild as mb; print(mb.__version__)"
)python --version
)?The text was updated successfully, but these errors were encountered: