Add chain gap detection to prevent artificial gap closure during mini…#10
Merged
Add chain gap detection to prevent artificial gap closure during mini…#10
Conversation
…mization Detects missing residues in protein chains by checking residue numbering discontinuities and C-N bond distances. Chains are split at gaps before OpenMM minimization to prevent the creation of unrealistic peptide bonds across gaps. Original chain IDs are restored after minimization. - Add chain_gaps.py module with detect_chain_gaps, split_chains_at_gaps, and restore_chain_ids functions - Integrate gap detection into relaxer.py relax() method - Add split_chains_at_gaps config option (enabled by default) - Add --no-split-gaps CLI flag to disable the feature - Add comprehensive tests for chain gap detection
…atom The bug was assigning a new chain ID for every atom at a gap start residue instead of just once when entering a new segment. Added tracking of processed gap starts to prevent duplicate chain assignments.
- Free up disk space by removing unused .NET, GHC, and Boost packages - Install CPU-only PyTorch to avoid large CUDA dependencies - Use --no-cache-dir to minimize pip cache usage The GitHub Actions runner was running out of disk space when installing PyTorch with CUDA dependencies (~5-7GB) alongside conda packages. Co-Authored-By: Claude Opus 4.5 <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.
…mization
Detects missing residues in protein chains by checking residue numbering discontinuities and C-N bond distances. Chains are split at gaps before OpenMM minimization to prevent the creation of unrealistic peptide bonds across gaps. Original chain IDs are restored after minimization.