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

Add substructure 1:1 node matching #45

Merged
merged 1 commit into from
Dec 5, 2020

Conversation

timholy
Copy link
Contributor

@timholy timholy commented Dec 1, 2020

When you want to preserve some property indexed to the nodes,
it's helpful to construct the node map.

I wasn't sure if this functionality already existed by other means. For my application, the nodeset approach in #39 (comment) is not sufficient because I want to be able to map the specific atoms between the structures. Specifically, I want to do 3d alignment to a steroid backbone, and so I want to know how to map the standard steroid carbon numbering system between two structures.

This currently fails because it seems there's some overly-permissive SMARTS matching, so even if this functionality exists and I just missed it, at least the test should be useful. Nevermind, I missed the need to supply nodematcher!

@codecov-io
Copy link

codecov-io commented Dec 1, 2020

Codecov Report

Merging #45 (01cf7dd) into master (8844432) will increase coverage by 0.10%.
The diff coverage is 94.11%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #45      +/-   ##
==========================================
+ Coverage   75.24%   75.34%   +0.10%     
==========================================
  Files          53       53              
  Lines        4189     4206      +17     
==========================================
+ Hits         3152     3169      +17     
  Misses       1037     1037              
Impacted Files Coverage Δ
src/graph/isomorphism/vf2.jl 85.03% <ø> (ø)
src/substructure.jl 80.39% <94.11%> (+1.71%) ⬆️
src/smarts/base.jl 76.92% <0.00%> (+2.56%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8844432...01cf7dd. Read the comment docs.

When you want to preserve some property indexed to the nodes,
it's helpful to construct the node map.

Documentation here isn't complete because `atommatch` and `bondmatch`
are undocumented, but hopefully it sends users in the right direction.
Copy link
Owner

@mojaie mojaie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Thank you very much!

@mojaie mojaie merged commit be43e65 into mojaie:master Dec 5, 2020
@timholy timholy deleted the teh/emaptonodemap branch December 5, 2020 08:44
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

3 participants