Skip to content
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

Patch/sdg refine #169

Merged
merged 5 commits into from Oct 24, 2015
Merged

Patch/sdg refine #169

merged 5 commits into from Oct 24, 2015

Conversation

johnmay
Copy link
Member

@johnmay johnmay commented Oct 24, 2015

Refinement algorithm for improving a structure layout. Replaces the OverlapResolver (which was currently disabled but provided similar functionality) with a relatively standard algorithm for rotating, bending, and stretching bonds.

Examples (also comparing to OverlapResolver)

Clark 06

From CDK doc (Nina's doc - https://docs.google.com/document/d/1HEBrAscm__sXSJxjV3fT5SfzMouEJdT5gz60S2xdwHQ)

US20020149010A1_42

CHEMBL590010

CHEMBL1077020 (my favourite)

Still some are still not ideal:

Helson 99, Fig 8d

This one is okay... but I'm not super happy

CHEMBL604989

Here the chain place points the substituents (away from the ring centre). In cyclophanes we should flip the spiro connected rings so larger parts are on the outside. However the bonds would still be pointing the wrong way so more patches needed elsewhere (hence not resolved for now).

CHEMBL604989

Full Album:
https://goo.gl/photos/W4KDRpTYSfVRLkLLA

johnmay and others added 5 commits October 20, 2015 22:30
… first bond did not always contain the first atom.
…buried") value allows us to prioritise atom placement and post layout modifications.

The existing implementation had overflow meaning ranks weren't stable - otherwise it's simpler to canonical labelling.
… done through the JDK it looks like floating point coords get truncated.

We are therefore better off rounding the coordinates ourself - I saw an improvement but still not perfect compared to a PDF/SVG displayed on the screen at the same scale..
@egonw
Copy link
Member

egonw commented Oct 24, 2015

Generally looks good to me.

egonw added a commit that referenced this pull request Oct 24, 2015
Looks useful. I could not merge it immediately, not realizing it's just push button via the website...
@egonw egonw merged commit f554bb9 into master Oct 24, 2015
@johnmay johnmay deleted the patch/sdg-refine branch October 26, 2015 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants