Commit 5514eed
committed
perceive: represent inter-fragment contacts in transition states as reaction bonds
When perceiving a molecule from coordinates, transition states (TS) often consist of multiple fragments held together by the breaking/forming bonds. Previously, these inter-fragment contacts were either ignored or assigned bond orders based on radical availability.
Changes:
- Pass an `is_ts` flag through the perception pipeline.
- In `_add_interfragment_bonds`, explicitly assign a bond order of 0.05 (reaction bond) to inter-fragment contacts if the species is a TS.
- Update `to_rdkit_mol` to skip reaction and van der Waals bonds, as RDKit cannot represent these non-covalent or partial bond types.
- Update `ARCSpecies` perception logic to propagate the `is_ts` status, ensuring TS connectivity is correctly captured during coordinate-to-graph conversion.1 parent dc2d4c0 commit 5514eed
3 files changed
Lines changed: 18 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
122 | | - | |
| 123 | + | |
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
| |||
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
| 153 | + | |
152 | 154 | | |
153 | 155 | | |
154 | 156 | | |
| |||
273 | 275 | | |
274 | 276 | | |
275 | 277 | | |
276 | | - | |
| 278 | + | |
277 | 279 | | |
278 | 280 | | |
279 | 281 | | |
| |||
297 | 299 | | |
298 | 300 | | |
299 | 301 | | |
| 302 | + | |
300 | 303 | | |
301 | 304 | | |
302 | 305 | | |
303 | 306 | | |
304 | 307 | | |
305 | 308 | | |
306 | | - | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
307 | 312 | | |
308 | 313 | | |
309 | 314 | | |
| |||
337 | 342 | | |
338 | 343 | | |
339 | 344 | | |
340 | | - | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
341 | 348 | | |
342 | 349 | | |
343 | 350 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1432 | 1432 | | |
1433 | 1433 | | |
1434 | 1434 | | |
| 1435 | + | |
1435 | 1436 | | |
1436 | 1437 | | |
1437 | 1438 | | |
| |||
1639 | 1640 | | |
1640 | 1641 | | |
1641 | 1642 | | |
| 1643 | + | |
1642 | 1644 | | |
1643 | 1645 | | |
1644 | 1646 | | |
| |||
1673 | 1675 | | |
1674 | 1676 | | |
1675 | 1677 | | |
| 1678 | + | |
1676 | 1679 | | |
1677 | 1680 | | |
1678 | 1681 | | |
1679 | 1682 | | |
1680 | 1683 | | |
1681 | 1684 | | |
1682 | 1685 | | |
| 1686 | + | |
1683 | 1687 | | |
1684 | 1688 | | |
1685 | 1689 | | |
| |||
1853 | 1857 | | |
1854 | 1858 | | |
1855 | 1859 | | |
| 1860 | + | |
1856 | 1861 | | |
1857 | 1862 | | |
1858 | 1863 | | |
| |||
0 commit comments