Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fragmented molecule atom mapping rearrangement #126

Closed
ldamore opened this issue Oct 21, 2021 · 3 comments
Closed

fragmented molecule atom mapping rearrangement #126

ldamore opened this issue Oct 21, 2021 · 3 comments

Comments

@ldamore
Copy link

ldamore commented Oct 21, 2021

I found that the atom mapping of the fragmented molecule is rearranged with respect to the parent molecule. Could this be avoided? Or should this be documented?

@j-wags
Copy link
Member

j-wags commented Oct 21, 2021

Hi @ldamore - Do you have a minimal reproducing case that you could post when you have time? And could you post the output of running conda list (if I recall correctly, you're using the RDKit+AmberTools backend)

@jthorton
Copy link
Contributor

Hi @ldamore, are you saying that the input to fragment molecule mapping is not correct? If so this is often due to the input molecule being put into canonical order during fragmentation, this is needed to make fragmentation reproducible as conformer generation has been shown to depend on atom ordering. When comparing a fragment to a parent you should instead remake the parent from the FragmentationResult class, using the property here. Note that the mapping also corresponds to map indices and not the actual atom indices, so an atom that is in both the parent and the fragment will have the same map index but a different particle index. You can see that in in the docs in the results of box 3 and 4.

@j-wags
Copy link
Member

j-wags commented Nov 6, 2021

Thanks @jthorton -- That's a great explanation and it helped unblock us!

After working with @ldamore today, I realized that what we really want is a mapping from the input molecule to the parent. So I've opened #129, which is blocked by the toolkit for the time being. But I think we can call this issue closed!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants