Skip to content

How to get the previous atom_idx from the two fragments that match with the considered atoms in parent? #3669

Answered by greglandrum
IchiruTake asked this question in General
Discussion options

You must be logged in to vote

@IchiruTake: I'm not 100% sure what you want to do, but a relatively easy way to get the environment around an atom after breaking a bond from it is to use Chem.FragmentOnBonds() to break the bond(s) you want without changing the atom indices.

Here's a gist demonstrating how that works:
https://gist.github.com/greglandrum/93a209c0155d82f0fde07d14b4a14fbe

Does that help?

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by greglandrum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants