Navigation Menu

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

Feature/update template handler #165

Merged
merged 8 commits into from Oct 11, 2015
Merged

Conversation

johnmay
Copy link
Member

@johnmay johnmay commented Oct 7, 2015

I suspected this the other month when trying to handle Rich A's example of the fullerene with a custom template. The TemplateHandler used for 2d substructure templates has been out of action for a while. This patch updates it to newer graph (sub)isomorphism APIs and adds some utils for aligning to a reference.

The primary use case I wanted was to align depictions to a common (sub)structure:

image

It turns out you get some odd layouts now it's fixed, the default library has 5 templates, the forth one (a macrocycle) hit one of my tests and threw up something unexpected:

image

For now I've disabled the templates by default due to this. One way to have the best of both would be to have two sets of substructure templates, ring systems / general. We only match the ring templates if there are no bridges. Open to other suggestions.

egonw added a commit that referenced this pull request Oct 11, 2015
@egonw egonw merged commit 235e0ed into master Oct 11, 2015
@johnmay johnmay deleted the feature/update-template-handler branch October 11, 2015 11:50
johnmay added a commit that referenced this pull request Nov 7, 2015
…displeased results if the entire ring system wasn't mapped (#165) and since in that case we can use canonicalisation (Identity Templates) they are redundant.
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