Towards #2468 (RDKit interoperability GSOC project)#2916
Conversation
* Overview of work done in PR
This PR adds the `RDKitConverter` class which converts MDAnalysis
`Universe`/`Atomgroup` objects to `RDKit rdchem.Mol` objects.
* Limitations
- Bonds and elements must be present (the former will be inferred if not
present).
- This converter mainly aims at supporting cases where explicit hydrogens
are present.
* Extra implementation details
- Bond order and formal charges are inferred via atomic valencies & the
number of unpaired electrons (see `_infer_bo_and_charges`).
- In part due to the influence of atom read order on inferring, bond
conjugation and functional groups are standardized using SMARTS
reactions (see `_standardize_patterns`).
* Other changes
Also includes some PEP8 changes and some cleaning up of the tests for the
`RDKITReader`.
* References
For more information on the development process for this PR, see:
1) https://cbouy.github.io/blog/2020/07/01/rdkit-converter
2) https://cbouy.github.io/blog/2020/07/22/rdkit-converter-part2
|
Hello @orbeckst! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:
|
|
This PR is the history cleaned-up version of PR #2775 (as a single commit). |
|
@IAlibay can you please look after this PR? Thanks! |
|
I don't know if it's necessary or not to mention this PR in the changelog? |
|
No, the other one is the important one. Thanks for reviewing!
… On Aug 21, 2020, at 6:44 PM, Cédric Bouysset ***@***.***> wrote:
I don't know if it's necessary or not to mention this PR in the changelog?
|
Codecov Report
@@ Coverage Diff @@
## develop #2916 +/- ##
===========================================
+ Coverage 92.89% 92.97% +0.07%
===========================================
Files 187 187
Lines 24548 24787 +239
Branches 3182 3237 +55
===========================================
+ Hits 22805 23046 +241
+ Misses 1697 1693 -4
- Partials 46 48 +2
Continue to review full report at Codecov.
|
|
Standard merge should work. This won’t loose him as the author.
… Am 22.08.2020 um 13:46 schrieb Irfan Alibay ***@***.***>:
@orbeckst so I don't mess up (again), I assume it's fine to just do a standard merge here? Considering the rebase + squash-merge (sort of), I'm not super clear on what's the best way to avoid losing @cbouy as the main author.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Towards #2468 (RDKit interoperability GSOC project)
Replaces PR #2775
Overview of work done in PR
This PR adds the
RDKitConverterclass which converts MDAnalysisUniverse/Atomgroupobjects toRDKit rdchem.Molobjects.Limitations
present).
are present.
Extra implementation details
number of unpaired electrons (see
_infer_bo_and_charges).conjugation and functional groups are standardized using SMARTS
reactions (see
_standardize_patterns).Other changes
Also includes some PEP8 changes and some cleaning up of the tests for the
RDKITReader.References
For more information on the development process for this PR, see: