vibesketch.chem.depiction¶
Versioned 2D depiction restraints, with analytic gradients for FIRE.
Numeric drawing conventions: J. Brecher, Pure Appl. Chem. 80, 277–410 (2008), doi:10.1351/pac200880020277. The packaged table names each rule’s coverage and section. These are drawing units, never physical geometry. Force constants, clearance radii and convergence limits are our engineering choices, not measurements or numbers attributed to IUPAC.
Complex rings take a generated layout’s geometry rather than imposing
mutually incompatible regular polygons: the seed’s, or a better one among the
layouts the caller offers (DepictionField.build()). RDKit supplies
those layouts through its public depictor API; no template data is copied
into this package.
Classes
|
One molecule's fixed restraints; metrics use the same targets before/after. |
- class vibesketch.chem.depiction.DepictionField(seed, bonds, lengths, triples, angles, pairs, clearance, ring_pairs, ring_distances)[source]¶
Bases:
objectOne molecule’s fixed restraints; metrics use the same targets before/after.
- Parameters:
seed (NDArray[float64])
bonds (NDArray[int64])
lengths (NDArray[float64])
triples (NDArray[int64])
angles (NDArray[float64])
pairs (NDArray[int64])
clearance (NDArray[float64])
ring_pairs (NDArray[int64])
ring_distances (NDArray[float64])
- seed: NDArray[float64]¶
- bonds: NDArray[int64]¶
- lengths: NDArray[float64]¶
- triples: NDArray[int64]¶
- angles: NDArray[float64]¶
- pairs: NDArray[int64]¶
- clearance: NDArray[float64]¶
- ring_pairs: NDArray[int64]¶
- ring_distances: NDArray[float64]¶
- classmethod build(mol, seed, shapes=())[source]¶
The restraints of
mol; orientation and unruled angles come fromseed.shapesare layouts ofmol(atom order kept) that each fused, bridged, spiro or large ring system may take its geometry from (GR-3.3.2 to GR-3.3.4): bond lengths, ring distances and the angles at its atoms. Per system the first layout is kept unless a later one is clearly better (_shape()). Withoutshapeseach system keeps the seed’s geometry. Callers comparing layouts pass every field the sameshapes, so all of them share the same targets.- Parameters:
- Return type: