Repository navigation
feat(3d): names, NMR prediction, spectra and 3D (0.10.0) - #5
Merged
Merged
Conversation
The 3D view and the glTF export colour atoms from one table so a printed model matches the screen; radii are Bondi values with Alvarez fill-ins for metals.
An original writer: spheres and split two-colour cylinders as one indexed mesh with per-vertex linear colours, packed into the GLB container, so 3D models open in viewers and slicers without a GPL exporter.
…0.10.0) Measurements in the 3D view and dihedral scans share one set of formulas: distances to three decimals in angstrom, angles and IUPAC-signed dihedrals to one decimal in degrees.
Build, conformers, minimise, scan, measure, charges, molblock and the PDB and CIF parse and open routes are called from one place, with defensive parsing of every answer and a wait for the engine's transaction to reach the window.
…0.10.0) tsc refused the filter predicate over a union of object literals; one small parser per warning keeps the shape exact.
The 3D view shows a conformer at once from document.json when the molblock route is busy or absent; hydrogens come from the conformer's h positions in RDKit order, named a1:h0 like the engine.
…records (0.10.0) A conformer stores every fragment atom by id and each atom's implicit hydrogens in RDKit AddHs order, so the engine can rebuild the same molecule from the drawing and load or write coordinates without index drift.
…10.0) Minimisation runs to an RMS gradient target and says which method ran and why, falling back to UFF only when MMFF has no parameters for an element.
Re-perceiving CIP labels from the 3D geometry and comparing them with the drawing's labels proves the model is the drawn stereoisomer, and unspecified centres are named instead of silently chosen.
…force field (0.10.0) The build keeps wedges, double-bond geometry and the drawn member of enhanced stereo groups, uses a fixed seed so the same drawing gives the same model, and retries with the next seed when a stereo label would be lost.
…camera (0.10.0) One class owns the WebGL viewer: the five display styles (ligands as ball and stick and waters hidden for PDB), surfaces with ESP colouring from given charges, picked atoms, measurement marks, a lossless camera to matrix mapping for model3d objects, transparent PNG capture and the scene the glTF writer needs.
…olecule (0.10.0) Loading a stored conformer added it next to the flat drawing, so any code asking for the default conformer read the 2D coordinates instead of the 3D ones.
…opulations (0.10.0) An ensemble is embedded with a fixed seed, minimised, filtered for kept stereo, sorted by energy and pruned again by symmetry-aware heavy-atom RMSD, with Boltzmann populations for the conformer table.
A dihedral scan shows its profile as one thin line with point markers, the minimum ringed and a hover readout; ticks, grid lines and points are keyed so a new scan patches the plot instead of rebuilding it.
Conformers asks for the count, energy window and force field; the scan dialog takes the range and step, runs the relaxed scan, plots it, names method and engine, and can keep each point as a conformer to view by clicking it.
…ps and suffixes (0.9.0) One table serves both directions, so every prefix and suffix the namer writes is one the parser reads.
Each ring parent is a SMILES whose atom order is its IUPAC numbering, so substructure matches give every allowed numbering.
…ter (0.10.0) Minimising loads the active conformer onto the rebuilt molecule, runs the chosen force field to the RMS gradient target and keeps the conformer id, so the 3D view and its measurements stay attached.
…10.0) Each angle starts from the same geometry, holds the dihedral with an MMFF or UFF torsion constraint and reports the energy without the constraint term, which gives butane its symmetric anti, gauche and syn profile.
… charges (0.10.0) Measurements read the stored conformer directly by atom id or hydrogen label, and Gasteiger or MMFF94 charges per atom and hydrogen feed the approximate ESP colouring with its method named.
…an atom map (0.10.0) The viewer and 3D export need every hydrogen explicit and a way back from block index to fragment atom id, and SDF records carry the conformer id, energy and method as data fields.
…ds and waters (0.10.0) The viewer needs one summary whatever the file format: chains with sequences, ligands with het codes and a primary ligand to focus, water and alternate location counts, and format detection from the bytes.
Reading ATOM, HETATM, MODEL, HETNAM, HELIX, SHEET and CONECT records directly keeps residue, chain and altloc detail that the structure summary and ligand extraction need.
Substitutive, ester, salt and functional class names parse into trees with every reading kept, and the furthest point reached is kept so a refusal can say where the name stopped making sense.
…(0.10.0) RDKit has no mmCIF reader and gemmi was not vetted, so a small reader handles quoted values, text fields, loops, auth and label columns, models and altlocs, plus small-molecule CIF fractional coordinates.
…rceived bond orders (0.10.0) A small offline table of common het codes gives exact bond orders; other ligands get connectivity from CONECT or distances and orders from hydrogens or bond lengths, flagged as inferred, and keep their coordinates as the fragment's conformer.
…onformer (0.10.0) A 3D record becomes a fragment with a fresh 2D layout and wedges read from the geometry, while the file's heavy-atom and hydrogen positions are kept as the fragment's conformer; the ligand extractor now takes the drawing's used ids too.
….9.0) Parents, suffixes, prefixes and ester, salt and class words are assembled on kekulized fragments; a missing locant is filled at the lowest position and recorded as an assumption so confidence can drop.
…le (0.10.0) FORMAT.md says a conformer is valid only for the graph it was made from, so a graph signature over the chemistry fields of atoms and bonds tells a real change from a move, a display edit or a swapped plain bond.
…ph change (0.10.0) Applying the drop inside apply_now puts it in the recorded transaction and its inverse, so undo brings the conformers back with the old graph and every window receives the same ops.
Records the 3D View, building, conformers, scans, structure files, exports and the eight MCP tools, with the exit criteria results and the known issues from the integration and keying notes.
Entries 199 to 222 record the 3D package, the PDB and mmCIF readers, ligand extraction, the stale-conformer rule, the 3D routes and the eight agent tools, with what was not verified at 0.10.0.
Entries 222 to 244 record the lazy viewer, the 3D View panel, snapshots without flash, the glTF writer, the 3D commands, structure files and the mirrored stale-conformer rule, with what was not verified at 0.10.0.
…ture files (0.10.0) A new page for 3D: the panel, how builds keep stereo, conformers, minimisation, scans, measurements, surfaces, PDB, mmCIF and 3D SD files, ligands, page objects, exports, method labelling, accuracy, the routes and the limits.
Lists build_3d, conformers_3d, minimise_3d, scan_dihedral, measure_3d, open_3d_structure, extract_ligand and export_3d with their arguments and results from mcp.py, an example from the integration run, and the 60-tool count.
…t (0.10.0) Adds a 3D files section (PDB, mmCIF, 3D SD and MOL in; MOL, SDF, PDB, XYZ and glTF out) with its report items, and points the known limits at 3D.md.
…le write list (0.10.0) The desktop save path goes through /api/files/write, whose extension list lacks .glb, .cif, .mmcif and .ent; the browser download works, so the release notes and the window log say so until the route is extended.
Explains the 3D View, building from 2D, conformers, scans, measuring, surfaces, 3D objects on the page, PDB and mmCIF files, ligands and exports for people using the window.
Home now says what 0.10.0 adds, that a structure database comes next, links the 3D page and counts 60 agent tools.
The Agents page counts 60 tools, adds the 3D group and a row per tool, says how an agent checks a build and reaches styles and surfaces through the window's commands, and names 3D in the harness skill.
The tree gains the three_d package, router and window modules, and a 3D section explains conformers in the fragment, the stale rule on both sides, structure files kept as media and how the page shows a 3D view without flashing.
… 3D page (0.10.0) Getting Started and Formats and Export now list PDB and mmCIF files among those File > Open and Import read, say that 3D SD records keep their coordinates, and point the 3D exports at the 3D page.
Adds the 3D View, conformers and proteins tiles, the MCP tile at 60 tools, the 3D agent tools, an Under the hood bullet, the 0.10.0 status, the structure database as what comes next and the 3D.md link; the badge stays for the release commit.
…10.0) Agents reading the root files learn the tool count and the eight 3D tools, and that a build should be checked for kept stereo before its geometry is used.
The supported versions table follows the version in development.
The harness description, status, tool table, routing and failure rows now cover the eight 3D tools, and a new three-d sub-skill says how to build, search conformers, minimise, scan, measure, open PDB files, extract ligands, export and verify that a geometry kept the drawn stereo.
….10.0 (0.10.0) The command catalogue gains a 3D section with all 22 commands and their params and drops the 3D placeholders; window-commands, drawing, visual-qa and session-and-connection learn the 3D tools, the 3D checks and the 60-tool count.
Five evaluations (ethanol's C-O length, the paclitaxel stereo check, a ligand from a PDB file, the butane barrier, styling the 3D View) and eight trigger queries cover the 3D tools; the notes and eval 1 move to 0.10.0 and 60 tools.
The skillset description, status, subsystem map, dependency graph and routing name the 3D engine package, router, 3D View, model3d renderer, glb writer and stale rule; a three-d sub-skill gives the file map, laws and recipes for a style, surface, force field, file reader or MCP tool, and the agents sub-skill lists the eight 3D tools. Rows were tightened to keep the body under its 5000-token budget.
Four evaluations (a new display style, conformers that survive a charge edit, xtb as a user-installed method, the desktop glTF save) and six trigger queries cover the three-d sub-skill; the notes move to 0.10.0.
The description auditor left a 3D build-and-stereo trigger below half keyword overlap; naming build in the 3D clause brings trigger coverage to 6 of 6 at 1016 characters.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(3d): names, NMR prediction, spectra and 3D (0.10.0)
Summary
.glb,.cif,.mmcif,.entand.jcamp.setup/notices.pycrashed on two versions of one npm package.names-and-spectraandthree-dsub-skills; the validator passes with 0 FAIL and 0 WARN on both packs and mirrors. New docs: NAMES.md, SPECTRA.md, 3D.md, and the wiki pages Names, Spectra and NMR, and 3D.Commits
Oldest first, release commits last in each phase. Short hashes are left out because they change when formpr signs.
Version
v0.10.0 (release commit is last; v0.9.0 is the release commit at the end of phase 9). Version sites bumped: frontend/package.json, both fields of frontend/package-lock.json, frontend/src/version.ts, backend/app/init.py, src-tauri/Cargo.toml, the formchem entry of src-tauri/Cargo.lock, src-tauri/tauri.conf.json, the Flatpak metainfo release lines, the README badge.
Checks
npx tsc --noEmit,./formchem build, compileall andformchem_engine.py --selfcheck(formchem 0.10.0, rdkit 2025.09.3, indigo 1.49.0),cargo check --lockedin src-tauri (Linux with WebKitGTK): pass../formchem i18n check(26 languages) andi18n scan(0 unkeyed),setup/agents.py sync --check,setup/notices.py --check(numpy 2.5.5, 3dmol 3.0.0 and its MIT and Zlib packages added), no em dash in markdown, no emoji in changed files: pass. god-tier-skill-creatorvalidate_skill.pyon both packs and both mirrors: PASS, 0 FAIL, 0 WARN.Merging
Merge with a merge commit so each commit and its signature stays. Do not squash.