Hapticity and metallocenes
hapticity detects metal–ring interactions from a molecular graph and 3D coordinates. It reports the ring atoms coordinated to each transition metal, the hapticity
flowchart LR
A[Bonds] --> B[Ring atoms]
C[Metal + coordinates] --> D{Distance < r_M + r_C + 0.8 Å?}
B --> D
D --> E[Coordinated ring atoms]
E --> F[Contiguous groups]
F --> G[eta and centroid]
G --> H{Two eta-5 rings on one metal?}
H -- yes --> I[Metallocene]
Method
- Ring atoms are found with a DFS cycle detection over the bond list.
- For every transition metal, a ring atom is coordinated when its distance is below
where the extra 0.8 Å accounts for the longer haptic metal–ring bonds. 3. Coordinated ring atoms are split into contiguous groups using the bond list; each group is one haptic interaction with
The centroid and metal_centroid_distance are reported in Å.
Example: ferrocene-like Fe(Cp)₂
A staggered model with Fe at the origin and two five-membered rings at
json
{
"interactions": [
{
"metal_index": 0,
"metal_element": 26,
"ring_atoms": [1, 2, 5, 3, 4],
"hapticity": 5,
"centroid": [0.0, 0.0, 1.65],
"metal_centroid_distance": 1.65
},
{
"metal_index": 0,
"metal_element": 26,
"ring_atoms": [6, 7, 10, 8, 9],
"hapticity": 5,
"centroid": [0.0, 0.0, -1.65],
"metal_centroid_distance": 1.65
}
],
"is_metallocene": true,
"n_interactions": 2
}Water has no rings/metal and returns {"interactions": [], "is_metallocene": false, "n_interactions": 0}.
Validation and limits
- Empty/mismatched/non-finite geometries are rejected; elements must be in Z=1–118.
- Bond indices must be in
0..n_atomsand cannot be self-bonds. - Ring perception requires a cyclic bond list. If bonds are omitted, the CLI perceives them from covalent radii; unusual haptic coordination may need an explicit
--bonds. - The 0.8 Å cutoff is a heuristic for haptic bonds, not a fitted value. The descriptor reports geometry, not a bonding energy.
- Only transition metals (
is_transition_metal) are considered.
Surfaces
| Surface | Entry point |
|---|---|
| CLI | sci-form hapticity "<elements>" "<coords>" [--bonds JSON] |
| Rust | periodic::detect_hapticity, detect_hapticity_checked |
| Python | detect_hapticity(elements, coords, bonds=None) |
| WASM | detect_hapticity(elements_json, coords_json, bonds_json) |