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
better sanitize handling in read_sdf #41
Conversation
Note that this PR restore the original behaviour in |
It's tricky to copy/paste the conformers in I could map the atoms but I am afraid it would be a bit CPU intensive for what it is. I also tried using |
I don't see any other way than using the rdkit If you have a better idea, let me know! |
Or we could make |
Sanitizing with rdkit is probably the better idea, then let the user call |
I just realized that an SDF file can only have one single conformer per molecule, meaning the Plan is:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am perso fine with the current version.
Thanks for the review! |
Checklist:
news
entry.news/TEMPLATE.rst
tonews/my-feature-or-branch.rst
) and edit it.Calling
dm.sanitize_mol
delete the conformers which should not happens by default since you often want the 3d structure when you read an SDF file.(bug spotted while running unit tests on
berth
with a recent version of datamol)