Repository navigation
skeleton lab on a molecule: mesh_lab makes PDB 1GRL's surface from its blur map; strands follow the helices - #1430
Merged
Merged
Conversation
…ue-atom table (TexMol M0 part 1) The first TexMol port (docs/roadmap/TEXMOL-F2DOCK-ARISRV-ROADMAP.md, M0), and the first step toward a skeleton demo on molecular data: a PDB file read into atoms with radii, which T1's blur turns into a density and its isosurface into the surface mesh_lab skeletonizes. - inc/cvc/mol/molecule.h: a flat molecule (atoms with serial, name, alternate location, residue, chain, insertion code, position, occupancy, B factor, element, HETATM, model, radius, charge and table row; HELIX, SHEET and TURN residue ranges; HEADER's id and TITLE), its bounds, and the structure an atom's residue lies in. - Readers: PDB by its fixed columns (v3.3, and the older files whose columns 73-80 hold the entry and a line number; elements from columns 77-78 or the atom name, by the PDB's own convention), PQR by whitespace (charge and radius from the file), XYZR. A malformed line is an error naming the file and line, where TexMol's parser read it as zeros. - Each app's own file handlers (molecule_handlers(app), an app slot, as point_classes), and read_molecule by extension. - molecule_read_params, a param_table: which model, HETATM, water, hydrogens, alternate locations, van der Waals or solvent-enlarged radii, and the radius of an atom the table lacks. The defaults keep what TexMol's PDBParser kept. - residue_atom_table.inc: PDBParser's ElementInformation table (TexMol ed20eae, LGPL-2.1 since TexMol#7), all 410 rows, generated from it: radii, colours, hydrophobicities, interface propensities, solvent-enlarged radii and charges, looked up by atom and residue name without blanks. TexMol gave an atom the table lacks its occupancy as its radius (addAtom's argument order); here it gets unknown_radius, 2.0 by default, TexMol's defaultInformation. - molecule_test (a port test: natively and in the wasm-mt lane): the table, every record kind and filter, the older columns and CRLF lines, PQR and XYZR, each reader's errors, two apps' handlers, and PDB entry 1GRL, a GroEL subunit: 4,186 atoms, 757 hydrogens, one heavy atom the table lacks (OXT), 19 helices and 11 sheet strands. - src/cvc/tests/data/mol/1grl.pdb (the PDB, CC0) and its notice; the TexMol roadmap's progress. Not in this part: the group tree, torsions, writers, CLI, pycvc and intrinsics (M0 part 2), and the A/B against TexMol's parser, which comes with T1's blur in tools/texmol-goldens.
…the A/B comes next)
…ldens), its CI job, docs - tools/texmol-goldens, as tools/volrover-goldens: builds TexMol's PDBParser and Blurmaps' GOABlur at a pinned sha (texmol.sha, ed20eae), with two shims (BlurMapsDataManager.h, whose getBoundingBox CMake copies out of the legacy source as it is; libcvc 3.x's cvc/endians.h), runs them on 1GRL (TexMol's default blobbiness at 1.5 Å, and a low-resolution map, B -0.5 at 2 Å), and writes the goldens to src/cvc/tests/data/texmol-goldens/blur; --check makes them again and compares (densities to 1e-5 relative). blur_driver.cpp stands in for getBlurredVolume. - ci.yml: the texmol-goldens job runs --check when the tool, the goldens or 1GRL change. - blur_test T1: TexMol's atoms and radii (read with unknown_radius 1.0, since TexMol gave an atom its table lacks its occupancy), in another order (its group tree keeps a sheet's strands together); its grid and box; its densities to 1e-5 relative: 158,394 of 159,120 voxels bit for bit at TexMol's default, 68,069 of 70,200 in the low-resolution map, the rest the same float sums in TexMol's order. - blur.h says how close it is; the TexMol roadmap's progress; 1GRL's notice covers the goldens.
…ads it too), with a README
… lines keep their continuations
…so the goldens' json is the same on Windows
…ap, isosurface); its strands follow the helices Joe: "i believe skeletonization was meant for molecular data. instead of the bunny, do we have a better data set to use here ... maybe a pdb?" - mesh_lab: a molecule file (.pdb, .ent, .pqr, .xyzr; cvc::mol) is read as its heavy atoms, blurred (cvc::mol::blur) and isosurfaced (cvc::iso); source.blobbiness / resolution / isovalue / hydrogens, seeded from the props of those names, are in the source's signature, so load reads it again when they change. TexMol's defaults (-2.3442, 1 Å, 1). An isovalue above the density's peak is an error naming the peak. - skeleton_lab.ari: PDB 1GRL (a GroEL subunit) at blobbiness -0.2, 2 Å, isovalue 10, decimated to 4,000 triangles and skeletonized; a Molecule window changes the blur and makes it again. The gallery entry's text and thumbnail. mesh_tools is unchanged (other documents and goldens show it). - Why those settings: at TexMol's default blobbiness the surface is the atoms' own and the skeleton finds no strands; in blurrier maps its strands run along the helices. Here 81 of 243 helix C-alphas lie within 3 Å of a strand, 22 of 232 coil ones. - cvcgl_mesh_skeleton: the molecule case (the surface, the seeded keys, decimate and skeleton, the helix/coil ratio above 2, an isovalue above the peak reported). - Golden molecule_skeleton.ari: 1GRL's isosurface skeletonized as it is (not decimated), so every platform skeletonizes the same points; its PNG comes from CI's llvmpipe run. - arigl-web smoke: molecule.ari in the docset at /apps/mol/, whose page config preloads the PDB. - ARIADNE.md's mesh_lab table and demo paragraph; the TexMol roadmap's progress.
…he float grid positions' multiply-add and misses TexMol's maps by up to 5e-5
# Conflicts: # THIRD_PARTY_NOTICES.md # docs/roadmap/TEXMOL-F2DOCK-ARISRV-ROADMAP.md # src/cvc/CMakeLists.txt # src/cvc/tests/port_tests.cmake
…8728, ari-golden-Linux-libcvc-release)
# Conflicts: # docs/roadmap/TEXMOL-F2DOCK-ARISRV-ROADMAP.md
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.
Stacked on #1428 (TexMol T1 part 1), which is stacked on #1427 (M0 part 1). The diff here is the demo's alone. CI runs once the chain reaches master, and the
molecule_skeletongolden's PNG comes from that run's llvmpipe artifact, as P2's did.Joe, 2026-11-21: "i believe skeletonization was meant for molecular data. instead of the bunny, do we have a better data set to use here ... maybe a pdb?" This PR makes the skeleton lab show PDB entry 1GRL, a GroEL subunit from his data directory.
What it adds
source.fileending in.pdb,.ent,.pqror.xyzris read withcvc::mol.cvc::mol::blur(TexMol's GOABlur, cvc::mol::blur: TexMol's GOABlur density as a stepper, with its A/B against TexMol (TexMol T1 part 1) #1428), and the surface is the blur's isosurface (cvc::iso). It is then placed like any mesh.source.blobbiness,source.resolution,source.isovalueandsource.hydrogens. They are part of the source's signature, so a change makesloadread the file again.examples/ariadne/documents/skeleton_lab.ari) shows 1GRL at blobbiness −0.2, a 2 Å grid and isovalue 10, decimated to 4,000 triangles and skeletonized.mesh_toolsis unchanged, so the other documents and goldens that include it keep their images.cvcgl_mesh_skeletongains a molecule case: the surface realizes from the PDB, the keys are seeded from the props, the decimate and skeleton run, the helix-to-coil ratio stays above 2, and an impossible isovalue is reported.molecule_skeleton.ari, skeletonizes 1GRL's isosurface without decimating, so every platform skeletonizes the same points.molecule.ariin the docset, served at/apps/mol/. Its page config preloads the PDB, because the page doesn't follow a node's source file on its own.Testing
cvcgl_mesh_skeleton(and its cooperative run),cvcgl_ariadne_views,cvcgl_ariadne_realize,molecule_test,blur_testandskeleton_testpass natively (MSVC Release).cvcgl_ari_golden:molecule_skeletonsettles, renders and passes its other checks; its PNG is the one missing piece. The rest pass apart from the pixel checks that only match llvmpipe on this machine's GPU (orthoslicer, contour_tiler, skeleton), the same as on master.