Fix HBond conflict and stabilize tempdir usage#231
Open
Chen-Jie7 wants to merge 4 commits intoRosettaCommons:productionfrom
Open
Fix HBond conflict and stabilize tempdir usage#231Chen-Jie7 wants to merge 4 commits intoRosettaCommons:productionfrom
Chen-Jie7 wants to merge 4 commits intoRosettaCommons:productionfrom
Conversation
When a user specifies select_fixed_atoms for a ligand with only a subset of its atoms, the unfixed atoms were ending up physically disconnected from the fixed ones (e.g., C11-C12 bond at 5-11A instead of ~1.5A). Three root causes were addressed: 1. _set_origin() zeroed coordinates for ALL unfixed atoms including ligand atoms, placing them at the origin. Now excludes ligand atoms (identified via atom_array.hetero) from zeroing. 2. centre_random_augment_around_motif() applied centering asymmetrically when centering_affects_motif=False, pulling unfixed ligand atoms away from fixed ones. Now accepts an is_ligand_atom mask and excludes ligand atoms from asymmetric centering. 3. Both initial noise (_get_initial_structure) and per-step noise (epsilon_L) were applied at full scale to unfixed ligand atoms, placing them ~160A away. Now zeroes noise for unfixed ligand atoms so they stay near their original positions while the model can still softly adjust them through denoising predictions. To support this, is_ligand_atom is now extracted as an atom-level feature in AddIsXFeats and propagated through the diffusion pipeline to the inference sampler. Verified with biotin_2.json partial fix (16/21 atoms fixed): C11-C12 bond improved from 5-11A to ~2.5A. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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