Skip to content

Consistency of CNS scripts across modules - issue #1729 - #1736

Open
amjjbonvin wants to merge 8 commits into
mainfrom
cns-scripts-consistency
Open

amjjbonvin wants to merge 8 commits into
mainfrom
cns-scripts-consistency

Conversation

@amjjbonvin

@amjjbonvin amjjbonvin commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Before submitting, read the contributing guidelines and the AI policy.

What does this PR do and why?

Several CNS scripts are copied into multiple modules. Some copies had drifted apart, and some energy sections differed between modules without reason. This PR:

  • Adds a test: tests/test_cns_scripts_consistency.py requires every copy of a shared CNS script to be identical. Copies that are meant to differ must be listed in INTENDED_VARIANTS. This replaces the two copy checks in integration_tests/ (contactairs, dna-rna restraints).
  • Aligns the copies: the shared scripts are made identical across modules where that applies (flexauto-neighbors, flex_segment_*, charge-beads-interactions, read_param, ...).
  • Harmonises the energy sections:
    • flexref: the SCD1/SCD2 igroup statements are removed. They doubled the electrostatics of the polar CG beads.
    • emref and mdref: the duplicated dna-rna_restraints.cns call before the final energy is removed.
    • The free-molecule energy uses the same flags in all modules, without restraint energies.
    • emref uses epsilon_cg for CG models, as flexref does.
    • All modules report total = vdw + elec + AIR.

How was this tested?

  • The new consistency test passes (30 cases), as does pytest tests/ (2358 passed).
  • I ran the example regression script from Add regression testing of the examples against main (#1731) #1733 over 55 examples, comparing main with this branch (report below). The only quality changes are in the two CG examples, where the CG energies changed:
    • docking-nucleosome-PRC1-CG: flexref produced 4 of 5 models instead of 5, so the best model is slightly worse (DockQ 0.486 → 0.421). The failed model's output was cleaned, so the cause is not known yet.
    • docking-protein-protein-shape-CG: the best i-RMSD improves by about 0.9 Å.
  • analysis/dnascan-test differs only in the mutant file names, not in the results.

AI assistance

Claude Code helped compare the CNS scripts, wrote the energy-section harmonisation (5e13418) and ran the regression comparison. I reviewed the changes and the results.

Checklist

  • Tests cover the new and/or changed code
  • Documentation updated if needed (also in the haddock3 user-manual) (no user-facing documentation change)
  • CHANGELOG.md updated for user-facing changes

Related issues

Closes #1729

Notes for reviewers

  • To let the nucleosome CG example complete, the flexref tolerance was raised from 5 to 20 (allowing one model out of five to fail)). The regression run already used this setting, which is why the report says "+ local changes".
Regression report (examples/regression/report.md)

Example regression report

  • Reference: origin/main c8414e6e4 (2026-10-17T06:55:32)
  • Current: cns-scripts-consistency 5e13418d1 (+ local changes) (2026-10-17T11:37:46)
  • Tolerances: DockQ 0.05, i-RMSD/il-RMSD 0.5 Å, runtime 50%
  • ▲ better, ▼ worse (higher DockQ and lower (i)RMSD / rank are better)

1. Run status and outputs

  • analysis/dnascan-test: completed, but outputs differ
    • 2_dnascan: 3 file(s) missing: emscoring_1-B_A6C-T33G.pdb, emscoring_1-B_A6G-T33C.pdb, emscoring_1-B_A6T-T33A.pdb
  • docking-nucleosome-PRC1/docking-nucleosome-PRC1-CG-test: completed, but outputs differ
    • 6_flexref: 4 output models (reference 5)
    • 6_flexref: 1 file(s) missing: flexref_3.pdb
    • 7_caprieval: 4 output models (reference 5)
    • 8_cgtoaa: 4 output models (reference 5)
    • 8_cgtoaa: 1 file(s) missing: cgtoaa_5.pdb
    • 9_emref: 4 output models (reference 5)
    • 9_emref: 1 file(s) missing: emref_5.pdb
    • 10_caprieval: 4 output models (reference 5)
    • 11_clustfcc: 4 output models (reference 5)
    • 12_seletopclusts: 4 output models (reference 5)
    • 12_seletopclusts: 1 file(s) missing: cluster_1_model_4.pdb
    • 13_caprieval: 4 output models (reference 5)

2. CAPRI quality changes

  • docking-nucleosome-PRC1/docking-nucleosome-PRC1-CG-test 7_caprieval (DockQ criteria): nmodels: 5 → 4; acceptable: 5 → 4 ▼; best model rank: 2 → 3 ▼; best dockq: 0.462 → 0.409 ▼; best ilrmsd: 4.505 → 5.487 ▼
  • docking-nucleosome-PRC1/docking-nucleosome-PRC1-CG-test 10_caprieval (DockQ criteria): nmodels: 5 → 4; acceptable: 5 → 4 ▼; best dockq: 0.486 → 0.421 ▼; best ilrmsd: 4.435 → 5.502 ▼
  • docking-nucleosome-PRC1/docking-nucleosome-PRC1-CG-test 13_caprieval (DockQ criteria): nmodels: 5 → 4; acceptable: 5 → 4 ▼; best dockq: 0.486 → 0.421 ▼; best ilrmsd: 4.435 → 5.502 ▼
  • docking-protein-protein-shape/docking-protein-protein-shape-CG-test 6_caprieval (DockQ criteria): best irmsd: 20.947 → 20.089 ▲; best ilrmsd: 51.534 → 50.543 ▲
  • docking-protein-protein-shape/docking-protein-protein-shape-CG-test 9_caprieval (DockQ criteria): best irmsd: 20.857 → 19.953 ▲; best ilrmsd: 50.364 → 49.362 ▲
  • docking-protein-protein-shape/docking-protein-protein-shape-CG-test 12_caprieval (DockQ criteria): best irmsd: 20.857 → 19.953 ▲; best ilrmsd: 50.364 → 49.362 ▲

3. First acceptable and best models

Over 175 caprieval step(s):

  • rank of the first acceptable or better model: 0 better, 175 unchanged, 0 worse
  • rank of the best model: 0 better, 174 unchanged, 1 worse
  • quality of the best model (DockQ, or il-RMSD for ligands): 0 better, 172 unchanged, 3 worse

The best model is the one with the lowest i-RMSD (il-RMSD for the ligand criteria). Values are main → now; a single value means unchanged.

Steps that changed (3)

Test Step Criteria First acceptable rank Best model rank Best i-RMSD / il-RMSD Best Fnat Best DockQ Verdict
docking-nucleosome-PRC1/docking-nucleosome-PRC1-CG-test 7_caprieval DockQ 1 2 → 3 ▼ 5.484 → 5.686 0.476 → 0.427 0.462 → 0.409 ▼ worse
docking-nucleosome-PRC1/docking-nucleosome-PRC1-CG-test 10_caprieval DockQ 1 4 4.849 → 5.090 0.525 → 0.443 0.486 → 0.421 ▼ worse
docking-nucleosome-PRC1/docking-nucleosome-PRC1-CG-test 13_caprieval DockQ 1 4 4.849 → 5.090 0.525 → 0.443 0.486 → 0.421 ▼ worse
All caprieval steps (175)
Test Step Criteria First acceptable rank Best model rank Best i-RMSD / il-RMSD Best Fnat Best DockQ Verdict
analysis/alascan-test 2_caprieval DockQ 1 4 0.541 0.917 0.933 same
analysis/topoaa-caprieval-test 1_caprieval DockQ 3 3 0.906 0.897 0.866 same
analysis/topoaa-clustfcc-test 2_caprieval DockQ 1 1 0.906 0.897 0.866 same
analysis/topoaa-ilrmsdmatrix-clustrmsd-test 3_caprieval DockQ 1 1 0.906 0.897 0.866 same
docking-antibody-antigen/docking-antibody-antigen-CDR-NMR-CSP-test 2_caprieval DockQ 1 8 1.253 0.741 0.718 same
docking-antibody-antigen/docking-antibody-antigen-CDR-NMR-CSP-test 4_caprieval DockQ 1 2 2.343 0.328 0.397 same
docking-antibody-antigen/docking-antibody-antigen-CDR-NMR-CSP-test 6_caprieval DockQ 1 2 2.132 0.603 0.519 same
docking-antibody-antigen/docking-antibody-antigen-CDR-NMR-CSP-test 8_caprieval DockQ 1 4 2.132 0.603 0.519 same
docking-antibody-antigen/docking-antibody-antigen-CDR-NMR-CSP-test 11_caprieval DockQ 1 4 2.132 0.603 0.519 same
docking-antibody-antigen/docking-antibody-antigen-CDR-accessible-clt-test 2_caprieval DockQ - 52 7.619 0.000 0.116 same
docking-antibody-antigen/docking-antibody-antigen-CDR-accessible-clt-test 5_caprieval DockQ - 28 7.619 0.000 0.116 same
docking-antibody-antigen/docking-antibody-antigen-CDR-accessible-clt-test 7_caprieval DockQ - 35 7.401 0.000 0.122 same
docking-antibody-antigen/docking-antibody-antigen-CDR-accessible-clt-test 9_caprieval DockQ - 38 7.401 0.000 0.122 same
docking-antibody-antigen/docking-antibody-antigen-CDR-accessible-clt-test 12_caprieval DockQ - 38 7.401 0.000 0.122 same
docking-antibody-antigen/docking-antibody-antigen-CDR-accessible-test 2_caprieval DockQ - 52 7.619 0.000 0.116 same
docking-antibody-antigen/docking-antibody-antigen-CDR-accessible-test 4_caprieval DockQ - 8 15.512 0.000 0.034 same
docking-antibody-antigen/docking-antibody-antigen-CDR-accessible-test 6_caprieval DockQ - 1 14.983 0.000 0.031 same
docking-antibody-antigen/docking-antibody-antigen-CDR-accessible-test 8_caprieval DockQ - 2 14.982 0.000 0.031 same
docking-antibody-antigen/docking-antibody-antigen-CDR-accessible-test 11_caprieval DockQ - 2 14.982 0.000 0.031 same
docking-antibody-antigen/docking-antibody-antigen-ranairCDR-clt-test 2_caprieval DockQ - 49 5.416 0.069 0.119 same
docking-antibody-antigen/docking-antibody-antigen-ranairCDR-clt-test 5_caprieval DockQ - 10 14.256 0.034 0.053 same
docking-antibody-antigen/docking-antibody-antigen-ranairCDR-clt-test 7_caprieval DockQ - 1 13.871 0.086 0.071 same
docking-antibody-antigen/docking-antibody-antigen-ranairCDR-clt-test 9_caprieval DockQ - 2 13.870 0.086 0.071 same
docking-antibody-antigen/docking-antibody-antigen-ranairCDR-clt-test 12_caprieval DockQ - 2 13.870 0.086 0.071 same
docking-antibody-antigen/docking-antibody-antigen-ranairCDR-test 2_caprieval DockQ - 49 5.416 0.069 0.119 same
docking-antibody-antigen/docking-antibody-antigen-ranairCDR-test 4_caprieval DockQ - 3 13.044 0.000 0.055 same
docking-antibody-antigen/docking-antibody-antigen-ranairCDR-test 6_caprieval DockQ - 1 12.732 0.000 0.057 same
docking-antibody-antigen/docking-antibody-antigen-ranairCDR-test 10_caprieval DockQ - 1 12.732 0.000 0.057 same
docking-multiple-ambig/docking-multiple-tbls-test 2_caprieval DockQ - 3 4.502 0.146 0.185 same
docking-multiple-ambig/docking-multiple-tbls-test 4_caprieval DockQ 2 2 2.792 0.312 0.345 same
docking-multiple-ambig/docking-multiple-tbls-test 6_caprieval DockQ 2 2 2.773 0.302 0.343 same
docking-multiple-ambig/docking-multiple-tbls-test 9_caprieval DockQ 2 2 2.773 0.302 0.343 same
docking-nanobody-antigen/docking-nanobody-antigen-CDR-loose-epi-test 2_caprieval DockQ 13 13 3.201 0.286 0.237 same
docking-nanobody-antigen/docking-nanobody-antigen-CDR-loose-epi-test 4_caprieval DockQ - 3 4.200 0.196 0.152 same
docking-nanobody-antigen/docking-nanobody-antigen-CDR-loose-epi-test 6_caprieval DockQ - 4 3.843 0.321 0.210 same
docking-nanobody-antigen/docking-nanobody-antigen-CDR-loose-epi-test 8_caprieval DockQ - 3 3.855 0.339 0.215 same
docking-nanobody-antigen/docking-nanobody-antigen-CDR-loose-epi-test 11_caprieval DockQ - 3 3.855 0.339 0.215 same
docking-nanobody-antigen/docking-nanobody-antigen-CDR-mutagenesis-epi-test 2_caprieval DockQ 2 2 2.701 0.339 0.362 same
docking-nanobody-antigen/docking-nanobody-antigen-CDR-mutagenesis-epi-test 4_caprieval DockQ 2 2 2.701 0.339 0.362 same
docking-nanobody-antigen/docking-nanobody-antigen-CDR-mutagenesis-epi-test 6_caprieval DockQ 3 3 2.591 0.429 0.368 same
docking-nanobody-antigen/docking-nanobody-antigen-CDR-mutagenesis-epi-test 8_caprieval DockQ 1 1 2.597 0.464 0.378 same
docking-nanobody-antigen/docking-nanobody-antigen-CDR-mutagenesis-epi-test 11_caprieval DockQ 1 1 2.597 0.464 0.378 same
docking-nanobody-antigen/docking-nanobody-antigen-Para-Epi-test 2_caprieval DockQ 1 2 1.235 0.714 0.745 same
docking-nanobody-antigen/docking-nanobody-antigen-Para-Epi-test 4_caprieval DockQ 1 2 1.235 0.714 0.745 same
docking-nanobody-antigen/docking-nanobody-antigen-Para-Epi-test 6_caprieval DockQ 1 3 0.849 0.786 0.814 same
docking-nanobody-antigen/docking-nanobody-antigen-Para-Epi-test 8_caprieval DockQ 1 4 0.863 0.804 0.819 same
docking-nanobody-antigen/docking-nanobody-antigen-Para-Epi-test 11_caprieval DockQ 1 4 0.863 0.804 0.819 same
docking-nanobody-antigen/docking-nanobody-antigen-mix-loose-epi-test 2_caprieval DockQ 9 9 3.201 0.286 0.237 same
docking-nanobody-antigen/docking-nanobody-antigen-mix-loose-epi-test 4_caprieval DockQ 9 9 3.201 0.286 0.237 same
docking-nanobody-antigen/docking-nanobody-antigen-mix-loose-epi-test 6_caprieval DockQ 8 8 3.273 0.375 0.259 same
docking-nanobody-antigen/docking-nanobody-antigen-mix-loose-epi-test 8_caprieval DockQ 7 7 3.293 0.393 0.263 same
docking-nanobody-antigen/docking-nanobody-antigen-mix-loose-epi-test 11_caprieval DockQ 7 7 3.293 0.393 0.263 same
docking-nucleosome-PRC1/docking-nucleosome-PRC1-AA-test 2_caprieval DockQ 2 2 5.122 0.279 0.337 same
docking-nucleosome-PRC1/docking-nucleosome-PRC1-AA-test 4_caprieval DockQ 2 2 5.122 0.279 0.337 same
docking-nucleosome-PRC1/docking-nucleosome-PRC1-AA-test 6_caprieval DockQ 1 2 4.941 0.328 0.371 same
docking-nucleosome-PRC1/docking-nucleosome-PRC1-AA-test 8_caprieval DockQ 1 4 4.961 0.393 0.393 same
docking-nucleosome-PRC1/docking-nucleosome-PRC1-AA-test 11_caprieval DockQ 1 1 4.988 0.393 0.418 same
docking-nucleosome-PRC1/docking-nucleosome-PRC1-CG-test 3_caprieval DockQ 1 1 5.613 0.427 0.422 same
docking-nucleosome-PRC1/docking-nucleosome-PRC1-CG-test 5_caprieval DockQ 1 1 5.613 0.427 0.422 same
docking-nucleosome-PRC1/docking-nucleosome-PRC1-CG-test 7_caprieval DockQ 1 2 → 3 ▼ 5.484 → 5.686 0.476 → 0.427 0.462 → 0.409 ▼ worse
docking-nucleosome-PRC1/docking-nucleosome-PRC1-CG-test 10_caprieval DockQ 1 4 4.849 → 5.090 0.525 → 0.443 0.486 → 0.421 ▼ worse
docking-nucleosome-PRC1/docking-nucleosome-PRC1-CG-test 13_caprieval DockQ 1 4 4.849 → 5.090 0.525 → 0.443 0.486 → 0.421 ▼ worse
docking-protein-DNA/docking-protein-DNA-cmrest-test 2_caprieval DockQ - 7 6.887 0.098 0.102 same
docking-protein-DNA/docking-protein-DNA-cmrest-test 5_caprieval DockQ - 2 8.612 0.000 0.031 same
docking-protein-DNA/docking-protein-DNA-cmrest-test 9_caprieval DockQ - 2 8.614 0.000 0.031 same
docking-protein-DNA/docking-protein-DNA-cmrest-test 10_caprieval DockQ - 2 9.481 0.000 0.028 same
docking-protein-DNA/docking-protein-DNA-mdref-test 2_caprieval DockQ 1 1 2.077 0.537 0.565 same
docking-protein-DNA/docking-protein-DNA-mdref-test 5_caprieval DockQ 1 1 1.783 0.683 0.663 same
docking-protein-DNA/docking-protein-DNA-mdref-test 7_caprieval DockQ 1 1 1.723 0.756 0.694 same
docking-protein-DNA/docking-protein-DNA-mdref-test 10_caprieval DockQ 1 1 1.723 0.756 0.694 same
docking-protein-DNA/docking-protein-DNA-mdref-test 11_caprieval DockQ 1 2 2.096 → 2.100 0.756 0.653 → 0.652 same
docking-protein-DNA/docking-protein-DNA-test 2_caprieval DockQ 1 1 2.077 0.537 0.565 same
docking-protein-DNA/docking-protein-DNA-test 5_caprieval DockQ 1 1 1.783 0.683 0.663 same
docking-protein-DNA/docking-protein-DNA-test 9_caprieval DockQ 1 1 1.734 0.780 0.702 same
docking-protein-DNA/docking-protein-DNA-test 10_caprieval DockQ 1 2 2.165 0.756 0.649 same
docking-protein-glycan/docking-flexref-protein-glycan-test 4_caprieval DockQ 4 4 2.474 0.600 0.519 same
docking-protein-glycan/docking-flexref-protein-glycan-test 8_caprieval DockQ 4 4 2.474 0.600 0.519 same
docking-protein-glycan/docking-flexref-protein-glycan-test 9_caprieval DockQ 4 4 1.939 0.600 0.555 same
docking-protein-glycan/docking-protein-glycan-ilrmsd-test 2_caprieval DockQ 11 19 1.534 0.667 0.660 same
docking-protein-glycan/docking-protein-glycan-ilrmsd-test 6_caprieval DockQ 9 12 1.534 0.667 0.660 same
docking-protein-glycan/docking-protein-glycan-ilrmsd-test 8_caprieval DockQ 7 11 1.150 0.600 0.711 same
docking-protein-glycan/docking-protein-glycan-ilrmsd-test 11_caprieval DockQ 7 11 1.150 0.600 0.711 same
docking-protein-glycan/docking-protein-glycan-ilrmsd-test 12_caprieval DockQ 7 11 1.072 0.600 0.722 same
docking-protein-glycan/docking-protein-glycan-test 2_caprieval DockQ 11 19 1.534 0.667 0.660 same
docking-protein-glycan/docking-protein-glycan-test 6_caprieval DockQ 9 12 1.534 0.667 0.660 same
docking-protein-glycan/docking-protein-glycan-test 8_caprieval DockQ 7 11 1.150 0.600 0.711 same
docking-protein-glycan/docking-protein-glycan-test 12_caprieval DockQ 7 11 1.150 0.600 0.711 same
docking-protein-glycan/docking-protein-glycan-test 13_caprieval DockQ 7 11 1.072 0.600 0.722 same
docking-protein-homotrimer/docking-protein-homotrimer-test 2_caprieval DockQ 1 1 0.072 0.975 0.991 same
docking-protein-homotrimer/docking-protein-homotrimer-test 5_caprieval DockQ 1 1 0.454 0.765 0.892 same
docking-protein-homotrimer/docking-protein-homotrimer-test 7_caprieval DockQ 1 1 0.564 0.765 0.878 same
docking-protein-homotrimer/docking-protein-homotrimer-test 10_caprieval DockQ 1 1 0.564 0.765 0.878 same
docking-protein-ligand-shape/docking-protein-ligand-shape-test 2_caprieval DockQ 1 3 0.524 0.923 0.928 same
docking-protein-ligand-shape/docking-protein-ligand-shape-test 2_caprieval ligand 3 3 1.494 0.923 0.928 same
docking-protein-ligand-shape/docking-protein-ligand-shape-test 5_caprieval DockQ 1 1 0.604 1.000 0.944 same
docking-protein-ligand-shape/docking-protein-ligand-shape-test 5_caprieval ligand 1 1 1.411 1.000 0.944 same
docking-protein-ligand-shape/docking-protein-ligand-shape-test 9_caprieval DockQ 1 1 0.604 1.000 0.944 same
docking-protein-ligand-shape/docking-protein-ligand-shape-test 9_caprieval ligand 1 1 1.411 1.000 0.944 same
docking-protein-ligand/docking-protein-ligand-autotoppar-test 2_caprieval DockQ 1 4 0.726 0.895 0.899 same
docking-protein-ligand/docking-protein-ligand-autotoppar-test 2_caprieval ligand 1 4 0.751 0.895 0.899 same
docking-protein-ligand/docking-protein-ligand-autotoppar-test 4_caprieval DockQ 1 4 0.726 0.895 0.899 same
docking-protein-ligand/docking-protein-ligand-autotoppar-test 4_caprieval ligand 1 4 0.751 0.895 0.899 same
docking-protein-ligand/docking-protein-ligand-autotoppar-test 6_caprieval DockQ 1 4 0.795 0.789 0.851 same
docking-protein-ligand/docking-protein-ligand-autotoppar-test 6_caprieval ligand 1 3 0.925 0.842 0.867 same
docking-protein-ligand/docking-protein-ligand-autotoppar-test 10_caprieval DockQ 1 4 0.795 0.789 0.851 same
docking-protein-ligand/docking-protein-ligand-autotoppar-test 10_caprieval ligand 1 3 0.925 0.842 0.867 same
docking-protein-ligand/docking-protein-ligand-autotoppar-test 11_caprieval DockQ 1 2 1.139 0.842 0.819 same
docking-protein-ligand/docking-protein-ligand-autotoppar-test 11_caprieval ligand 1 3 0.909 0.842 0.816 same
docking-protein-ligand/docking-protein-ligand-centered-test 2_caprieval DockQ 1 4 0.742 0.842 0.878 same
docking-protein-ligand/docking-protein-ligand-centered-test 2_caprieval ligand 3 4 0.966 0.842 0.878 same
docking-protein-ligand/docking-protein-ligand-centered-test 4_caprieval DockQ 1 4 0.742 0.842 0.878 same
docking-protein-ligand/docking-protein-ligand-centered-test 4_caprieval ligand 3 4 0.966 0.842 0.878 same
docking-protein-ligand/docking-protein-ligand-centered-test 6_caprieval DockQ 1 3 0.857 0.895 0.878 same
docking-protein-ligand/docking-protein-ligand-centered-test 6_caprieval ligand 1 3 0.987 0.895 0.878 same
docking-protein-ligand/docking-protein-ligand-centered-test 10_caprieval DockQ 1 3 0.857 0.895 0.878 same
docking-protein-ligand/docking-protein-ligand-centered-test 10_caprieval ligand 1 3 0.987 0.895 0.878 same
docking-protein-ligand/docking-protein-ligand-centered-test 11_caprieval DockQ 1 1 1.179 0.842 0.804 same
docking-protein-ligand/docking-protein-ligand-centered-test 11_caprieval ligand 1 3 0.991 0.895 0.829 same
docking-protein-ligand/docking-protein-ligand-test 2_caprieval DockQ 1 6 0.716 0.842 0.883 same
docking-protein-ligand/docking-protein-ligand-test 2_caprieval ligand 1 6 0.610 0.842 0.883 same
docking-protein-ligand/docking-protein-ligand-test 4_caprieval DockQ 1 5 0.717 0.895 0.900 same
docking-protein-ligand/docking-protein-ligand-test 4_caprieval ligand 1 5 0.623 0.895 0.900 same
docking-protein-ligand/docking-protein-ligand-test 6_caprieval DockQ 1 1 0.782 0.789 0.856 same
docking-protein-ligand/docking-protein-ligand-test 6_caprieval ligand 1 2 0.860 0.737 0.829 same
docking-protein-ligand/docking-protein-ligand-test 10_caprieval DockQ 1 1 0.782 0.789 0.856 same
docking-protein-ligand/docking-protein-ligand-test 10_caprieval ligand 1 2 0.860 0.737 0.829 same
docking-protein-ligand/docking-protein-ligand-test 11_caprieval DockQ 1 1 1.162 0.789 0.802 same
docking-protein-ligand/docking-protein-ligand-test 11_caprieval ligand 1 2 0.810 0.737 0.777 same
docking-protein-peptide/docking-protein-peptide-mdref-test 2_caprieval DockQ 1 1 1.346 0.400 0.613 same
docking-protein-peptide/docking-protein-peptide-mdref-test 5_caprieval DockQ 1 3 2.102 0.275 0.467 same
docking-protein-peptide/docking-protein-peptide-mdref-test 7_caprieval DockQ 1 4 2.172 0.275 0.460 same
docking-protein-peptide/docking-protein-peptide-mdref-test 10_caprieval DockQ 1 4 2.172 0.275 0.460 same
docking-protein-peptide/docking-protein-peptide-mdref-test 11_caprieval DockQ 1 4 2.848 0.275 0.389 same
docking-protein-peptide/docking-protein-peptide-test 2_caprieval DockQ 1 1 1.346 0.400 0.613 same
docking-protein-peptide/docking-protein-peptide-test 5_caprieval DockQ 1 3 2.102 0.275 0.467 same
docking-protein-peptide/docking-protein-peptide-test 7_caprieval DockQ 1 4 2.175 0.275 0.459 same
docking-protein-peptide/docking-protein-peptide-test 10_caprieval DockQ 1 4 2.175 0.275 0.459 same
docking-protein-peptide/docking-protein-peptide-test 11_caprieval DockQ 1 4 2.899 0.275 0.383 same
docking-protein-protein-shape/docking-protein-protein-shape-CG-test 3_caprieval DockQ - 2 20.432 0.000 0.008 same
docking-protein-protein-shape/docking-protein-protein-shape-CG-test 6_caprieval DockQ - 1 20.947 → 20.089 ▲ 0.000 0.008 same
docking-protein-protein-shape/docking-protein-protein-shape-CG-test 9_caprieval DockQ - 1 20.857 → 19.953 ▲ 0.000 0.008 same
docking-protein-protein-shape/docking-protein-protein-shape-CG-test 12_caprieval DockQ - 1 20.857 → 19.953 ▲ 0.000 0.008 same
docking-protein-protein-shape/docking-protein-protein-shape-test 2_caprieval DockQ - 2 26.299 0.000 0.009 same
docking-protein-protein-shape/docking-protein-protein-shape-test 5_caprieval DockQ - 2 26.466 0.000 0.009 same
docking-protein-protein-shape/docking-protein-protein-shape-test 7_caprieval DockQ - 2 26.450 0.000 0.009 same
docking-protein-protein-shape/docking-protein-protein-shape-test 10_caprieval DockQ - 2 26.450 0.000 0.009 same
docking-protein-protein/docking-protein-protein-cltsel-test 2_caprieval DockQ 1 18 0.973 0.639 0.756 same
docking-protein-protein/docking-protein-protein-cltsel-test 5_caprieval DockQ 8 8 1.213 0.639 0.730 same
docking-protein-protein/docking-protein-protein-cltsel-test 7_caprieval DockQ 1 7 1.072 0.806 0.808 same
docking-protein-protein/docking-protein-protein-cltsel-test 11_caprieval DockQ 1 9 1.367 0.667 0.690 same
docking-protein-protein/docking-protein-protein-mdref-test 2_caprieval DockQ 1 4 0.992 0.667 0.762 same
docking-protein-protein/docking-protein-protein-mdref-test 5_caprieval DockQ 1 2 1.104 0.861 0.814 same
docking-protein-protein/docking-protein-protein-mdref-test 9_caprieval DockQ 1 1 1.048 0.889 0.832 same
docking-protein-protein/docking-protein-protein-test 2_caprieval DockQ 1 4 0.992 0.667 0.762 same
docking-protein-protein/docking-protein-protein-test 5_caprieval DockQ 1 2 1.104 0.861 0.814 same
docking-protein-protein/docking-protein-protein-test 9_caprieval DockQ 1 1 1.035 0.889 0.834 same
docking-protein-zinc-finger/docking-protein-zinc-finger-test 2_caprieval DockQ 2 3 2.877 0.294 0.425 same
docking-protein-zinc-finger/docking-protein-zinc-finger-test 5_caprieval DockQ 4 4 2.340 0.275 0.443 same
docking-protein-zinc-finger/docking-protein-zinc-finger-test 7_caprieval DockQ 4 4 2.310 0.333 0.467 same
docking-protein-zinc-finger/docking-protein-zinc-finger-test 10_caprieval DockQ 4 4 2.310 0.333 0.467 same
peptide-cyclisation/cyclise-ace-cys-peptide-test 3_caprieval DockQ - - - - - same
peptide-cyclisation/cyclise-ace-cys-peptide-test 7_caprieval DockQ - - - - - same
peptide-cyclisation/cyclise-ace-cys-peptide-test 12_caprieval DockQ - - - - - same
peptide-cyclisation/cyclise-ace-cys-peptide-test 16_caprieval DockQ - - - - - same
peptide-cyclisation/cyclise-peptide-test 3_caprieval DockQ - - - - - same
peptide-cyclisation/cyclise-peptide-test 7_caprieval DockQ - - - - - same
peptide-cyclisation/cyclise-peptide-test 12_caprieval DockQ - - - - - same
peptide-cyclisation/cyclise-peptide-test 16_caprieval DockQ - - - - - same
refine-complex/refine-complex-CG-test 5_caprieval DockQ 1 5 2.516 0.778 0.586 same
refine-complex/refine-complex-test 2_caprieval DockQ 1 6 0.539 0.917 0.933 same
scoring/capri-scoring-test 7_caprieval DockQ 1 1 0.000 1.000 1.000 same
scoring/deeprank-test 2_caprieval DockQ 1 1 0.000 1.000 1.000 same
scoring/emscoring-mdscoring-test 3_caprieval DockQ 1 1 0.000 1.000 1.000 same
scoring/mdscoring-test 2_caprieval DockQ 1 1 0.000 1.000 1.000 same
scoring/sasascore-test 3_caprieval DockQ 1 1 0.000 1.000 1.000 same

4. Runtime changes

  • docking-multiple-ambig/docking-multiple-tbls-test: 1403 s → 2555 s (+82%)
  • docking-nanobody-antigen/docking-nanobody-antigen-CDR-loose-epi-test: 1995 s → 160 s (-92%)
  • docking-nanobody-antigen/docking-nanobody-antigen-CDR-mutagenesis-epi-test: 1026 s → 123 s (-88%)
  • docking-nanobody-antigen/docking-nanobody-antigen-Para-Epi-test: 1953 s → 144 s (-93%)
  • docking-nanobody-antigen/docking-nanobody-antigen-mix-loose-epi-test: 1993 s → 187 s (-91%)
  • docking-nucleosome-PRC1/docking-nucleosome-PRC1-AA-test: 3792 s → 470 s (-88%)
  • docking-nucleosome-PRC1/docking-nucleosome-PRC1-CG-test: 3953 s → 328 s (-92%)
  • docking-protein-DNA/docking-protein-DNA-test: 340 s → 36 s (-89%)
  • docking-protein-glycan/docking-flexref-protein-glycan-test: 1073 s → 171 s (-84%)
  • docking-protein-glycan/docking-protein-glycan-ilrmsd-test: 967 s → 65 s (-93%)
  • docking-protein-homotrimer/docking-protein-homotrimer-test: 996 s → 92 s (-91%)
  • docking-protein-ligand/docking-protein-ligand-autotoppar-test: 1024 s → 118 s (-88%)
  • docking-protein-ligand/docking-protein-ligand-centered-test: 1765 s → 114 s (-94%)

5. Failing on both main and the current code

None.

6. Unchanged

  • analysis/alascan-complex-test
  • analysis/alascan-test
  • analysis/contmap-test
  • analysis/rnascan-test
  • analysis/topoaa-caprieval-test
  • analysis/topoaa-clustfcc-test
  • analysis/topoaa-ilrmsdmatrix-clustrmsd-test
  • docking-antibody-antigen/docking-antibody-antigen-CDR-NMR-CSP-test
  • docking-antibody-antigen/docking-antibody-antigen-CDR-accessible-clt-test
  • docking-antibody-antigen/docking-antibody-antigen-CDR-accessible-test
  • docking-antibody-antigen/docking-antibody-antigen-ranairCDR-clt-test
  • docking-antibody-antigen/docking-antibody-antigen-ranairCDR-test
  • docking-multiple-ambig/docking-multiple-tbls-test
  • docking-nanobody-antigen/docking-nanobody-antigen-CDR-loose-epi-test
  • docking-nanobody-antigen/docking-nanobody-antigen-CDR-mutagenesis-epi-test
  • docking-nanobody-antigen/docking-nanobody-antigen-Para-Epi-test
  • docking-nanobody-antigen/docking-nanobody-antigen-mix-loose-epi-test
  • docking-nucleosome-PRC1/docking-nucleosome-PRC1-AA-test
  • docking-protein-DNA/docking-protein-DNA-cmrest-test
  • docking-protein-DNA/docking-protein-DNA-mdref-test
  • docking-protein-DNA/docking-protein-DNA-test
  • docking-protein-glycan/docking-flexref-protein-glycan-test
  • docking-protein-glycan/docking-protein-glycan-ilrmsd-test
  • docking-protein-glycan/docking-protein-glycan-test
  • docking-protein-homotrimer/docking-protein-homotrimer-test
  • docking-protein-ligand-shape/docking-protein-ligand-shape-test
  • docking-protein-ligand/docking-protein-ligand-autotoppar-test
  • docking-protein-ligand/docking-protein-ligand-centered-test
  • docking-protein-ligand/docking-protein-ligand-test
  • docking-protein-ligand/refine-ligand-autotoppar-test
  • docking-protein-peptide/docking-protein-peptide-mdref-test
  • docking-protein-peptide/docking-protein-peptide-test
  • docking-protein-protein-shape/docking-protein-protein-shape-test
  • docking-protein-protein/docking-exit-test
  • docking-protein-protein/docking-protein-protein-cltsel-test
  • docking-protein-protein/docking-protein-protein-mdref-test
  • docking-protein-protein/docking-protein-protein-test
  • docking-protein-zinc-finger/docking-protein-zinc-finger-test
  • peptide-cyclisation/cyclise-ace-cys-peptide-test
  • peptide-cyclisation/cyclise-peptide-test
  • refine-complex/refine-complex-CG-test
  • refine-complex/refine-complex-test
  • scoring/capri-scoring-test
  • scoring/deeprank-test
  • scoring/emscoring-cg-test
  • scoring/emscoring-mdscoring-test
  • scoring/emscoring-test
  • scoring/mdscoring-test
  • scoring/prodigy-antibody-antigen-test
  • scoring/prodigy-protein-ligand-test
  • scoring/prodigy-protein-protein-test
  • scoring/sasascore-test

7. Skipped

  • docking-protein-protein/docking-extend-run-exit-test: needs an existing run (--extend-run)
  • docking-protein-protein/docking-extend-run-test: needs an existing run (--extend-run)
  • docking-protein-protein/docking-protein-protein-hpc-test: mode = batch
  • docking-protein-protein/docking-restart-exit-test: needs an existing run (--restart)

🤖 Generated with Claude Code and manual edits

amjjbonvin and others added 4 commits October 15, 2026 19:00
Added test for consistency checking
Corrected/simplified some igroup statements for CG
- flexref: remove the SCD1/SCD2 igroup statements. Statements in one igroup
  add up, so they doubled the electrostatics of the polar CG beads. Both
  intended effects are already provided by the topology/parameters (bonded
  SCD1-SCD2 pairs excluded by nbxmod=5; SCd type has no LJ parameters).
  The flexref scale_* scripts are identical again to the other modules.
- Remove the redundant igroup before the free-molecule energy (replaced by
  scale_intra_only.cns in calc_free-ene.cns before any energy evaluation).
- emref, mdref: remove the second dna-rna_restraints.cns call before the
  final energy (duplicated all DNA/RNA restraints).
- Harmonise the flags of the free-molecule energy section on flexref
  (flag excl * include bond angle dihe impr vdw); restraint energies are no
  longer part of the free-molecule, complex and final energies of the
  scoring modules.
- emref: remove the reset to the all-atom epsilon, so CG models use
  epsilon_cg for the internal and final energies (as flexref).
- mdref: remove the redundant dielectric block before calc_free-ene.cns.
- All modules: report total = vdw + elec + AIR, so the total no longer
  contains restraint energies not shown in the other energy terms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@amjjbonvin amjjbonvin self-assigned this Oct 23, 2026
@amjjbonvin amjjbonvin added CNS Improvements in the CNS engine AI Changes authored or assisted by AI labels Oct 23, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comment thread src/haddock/modules/refinement/cgtoaa/cns/flexauto-neighbors.cns
Comment thread src/haddock/modules/refinement/cgtoaa/cns/flexauto-neighbors.cns

{* Define various interaction and energetics settings *}

igroup interaction (not all) (not all) end

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Computing interactions between not all and not all ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This basically reinitialise the interaction arrays to none

@amjjbonvin
amjjbonvin requested a review from VGPReys October 26, 2026 19:01

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Changes authored or assisted by AI CNS Improvements in the CNS engine

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a test to check that CNS scripts present in various modules are matching

5 participants