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

Rattler-build recipe, geometry alignment, intramolecular beta scissions #493

Merged
merged 10 commits into from
Jun 3, 2024

Conversation

avcopan
Copy link
Collaborator

@avcopan avcopan commented Jun 3, 2024

No description provided.

avcopan added 10 commits May 30, 2024 08:30
Type inconsistency between set and list.
Gearing up to implement central geometry alignment, to avoid bugs.
Next step is to route all `geo_idx_dct` handling through this function.

It works as follows. Given a graph, a geometry, a `geo_idx_dct`, and
some set of graph key arguments, the alignment function is called like
so:
```
gra, geo, args, idx_dct = graph.align_with_geometry(gra, geo, args, geo_idx_dct)
```
This puts the graph keys in consecutive order and reorders the geometry
atoms to match the graph. It also remaps the graph keys in `args` onto
the new (consecutive) graph keys.
The `idx_dct` returned can be used to undo the reordering of atoms in
the geometry:
```
geo = geom.reorder(geo, idx_dct)  # restore the original order
```
I'm switching over in stages to check for bugs
Simplifies confusing geometry embedding code and brings some sanity to
the handling of mis-aligned graphs and geometries with `geo_idx_dct`s
If marked as stereogenic rather than excluded, these are ring-opening TS
graphs and the bond has ambiguous stereochemistry

	O    	          O
     \ / \         \     /
      C---C*   ->   C===C
     /     \	   /     \
@avcopan avcopan merged commit 00c4b8b into Auto-Mech:dev Jun 3, 2024
1 check passed
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.

1 participant