feat(polymers): add native and CGSmiles authoring - #83
Open
joelaforet wants to merge 4 commits into
Open
Conversation
Add mBuild-to-OpenFF conversion as the canonical chemistry boundary for atomistic polymer fragments, with OpenFF/SDF adapters feeding existing conjugation fragment models. Add static ACB parity coverage independent of Polymerist runtime, including graph, SMIRNOFF labels, NAGL charges, and OpenMM energy checks.
Preserve unchanged default config routing through bundled native methacrylate generation. Add deterministic random-walk mBuild assembly, OpenFF charging/cache artifacts, and a custom .rxn legacy Polymerist warning.
Add native linear fragment assembly with mBuild Port and force_overlap stitching, plus additive fixed and probabilistic provided charged SDF molecule pools. Preserve deprecated sdf_directory compatibility with warnings, update templates/docs, and cover behavior with focused tests.
Add the init-scaffolded simple notebook for offline CGSmiles polymer authoring. Support mBuild/OpenFF export with provided-only mode for generated charged SDFs. Remove Polymerist-backed generation paths and legacy reaction files. Pin the authoring stack in the project environments and lockfile.
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
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.
Summary
.rxnbackend path and document migration to native default methacrylate generation,polymers.fragments, the CGSmiles notebook, orpolymers.provided_molecules.Limitations
Glycan/protein handoff status
The notebook currently produces a charged SDF and a config snippet. Verified config/API support in this stack covers using that SDF as a free/additive polymer molecule through
polymers.provided_molecules/generation_mode: provided. The config-driven conjugation moiety provider still supportsattachment.moiety.polymer_recipeand SMILES/residue-name sources, and explicitly rejectsattachment.moiety.input_path; therefore automatic glycan attachment from the notebook SDF is not claimed here. Testing the notebook-to-branched-glycan/protein handoff remains the primary manual target for this PR.Validation
Fresh-checkout manual test
pixi install -e buildpixi run -e build polyzymd init <project-dir>pixi run -e build jupyter lab <project-dir>/notebooks/cgsmiles_polymer_scaffold.ipynbStacked commits included