Repository navigation
Skip HADDOCK restraints without atoms in either direction - #79
Merged
Merged
Conversation
A restraint whose selections are not found in the fixed and scanning chains (e.g. on a residue missing from an unbound structure) is skipped with a warning, as by CNS, instead of stopping DisVis. The report keeps the numbers of the restraints in the file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
amjjbonvin
added a commit
to haddocking/haddock3
that referenced
this pull request
Nov 23, 2026
DisVis 3.4.2 skips restraints on residues missing from a structure, as CNS does, instead of stopping (haddocking/disvis#79). Co-Authored-By: Claude Opus 5.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.
What does this PR do and why?
A HADDOCK restraint whose selections have no atoms in the fixed and scanning chains, in either direction (e.g. on a residue missing from an unbound structure), is skipped with a warning in the log, as CNS does, instead of stopping DisVis with a ValueError. DisVis stops only when all restraints are skipped.
parse_restraints/parse_tbltake an optionalskippedlist with the numbers of the skipped restraints, passed to the report so that its labels keep the numbers of the file. The choice of direction moved to_restraint_masks(complexity limit ofparse_tbl).How was this tested?
disvison 2FGR of the protein-peptide benchmark (receptor starting at residue 3, a restraint on residue 2) with the original restraints: restraint 1 skipped, the search and the report run, the report labels restraints 2-11.AI assistance
Written with Claude Code (Claude Opus 5.5); checked with the tests and the 2FGR run above.
Checklist
README.md)test-cases/*/example-results/updated if the output changes (no change: no restraint is skipped there)Related issues
Closes #78. Found in the haddock3 protein-peptide and protein-glycan benchmarks with the
disvismodule (haddocking/haddock3#1783).🤖 Generated with Claude Code