Skip to content

Persist PAE/PDE/pLDDT matrices in Python-mode scores.npz - #432

Open
barlowa124 wants to merge 159 commits into
chaidiscovery:mainfrom
barlowa124:fix/scores-npz-confidence-arrays
Open

barlowa124 wants to merge 159 commits into
chaidiscovery:mainfrom
barlowa124:fix/scores-npz-confidence-arrays

Conversation

@barlowa124

@barlowa124 barlowa124 commented Sep 28, 2026 •

Copy link
Copy Markdown

Description

run_folding_on_context() computes per-token PAE/PDE and per-atom
pLDDT, yet the per-sample scores.model_idx_*.npz stored only the
scalar ranking metrics. The confidence tensors never reached disk.
A write_scores_npz() helper now persists pae, pde and plddt
next to the scalar keys in the same file.

Motivation

Python-mode runs could not obtain the PAE output the web server emits
(#348). Persisting the matrices closes that gap without touching
inference behavior.

Test plan

tests/test_scores_npz.py builds a synthetic SampleRanking, writes
the npz, and asserts array presence and shapes. tests/test_ranking.py
passes. The unrelated local test_ions_parsing failure is a macOS
multiprocessing-spawn limitation in utils/timeout.py, reproducible
on a clean checkout.

jackdent and others added 30 commits September 9, 2024 08:45
allways -> always
move ESM to/from GPU once per complex, not once per chain
…reenshot

Update lab.chaidiscovery.com screenshot
Co-authored-by: Alex Rogozhnikov <arogozhnikov@users.noreply.github.com>
Warn user about potentially wrong EntityType
wukevin and others added 23 commits March 17, 2025 18:13
* do not use esm from transformers

* minor
…ies (chaidiscovery#355)

* Fix corner case for templates being enabled with no protein entities

* Fix typo
* Remove threads from kalign; add test

* Update docstring

* Add kalign to pytest
…aidiscovery#368)

* map d-partners to X in sequence

* rm residue corruption logic
…scovery#371)

* Add docstring

* Global template cif cache folder

* Update readme
)

* allow torch 2.7 - tested to work correctly with 2.7.1

* Update requirements.in

---------

Co-authored-by: Alex Rogozhnikov <arogozhnikov@users.noreply.github.com>
…mers + reasonable timeout) (chaidiscovery#410)

* fixed issue where process hangs on reference conformer generation

* autoformat

* suppress complain from mypy

---------

Co-authored-by: Keaun A <kja.working@gmail.com>
…tity names (chaidiscovery#384)

* support [] in addition to ()

* fix

* relax check
* upgrade gemmi

* reorder for compatibility
* relax requirement on numpy

* allow_pickle = False (taming mypy)
@barlowa124
barlowa124 force-pushed the fix/scores-npz-confidence-arrays branch 3 times, most recently from 12910b2 to 115f799 Compare September 28, 2026 23:08
The web server emits per-model confidence matrices, but run_inference()
in Python mode only wrote scalar metrics into scores.model_idx_*.npz.
Persist pae/pde/plddt alongside the scalars so downstream analysis has
the same artifacts. Closes chaidiscovery#348.
@barlowa124
barlowa124 force-pushed the fix/scores-npz-confidence-arrays branch from 115f799 to e1072e0 Compare September 28, 2026 23:08
@barlowa124

Copy link
Copy Markdown
Author

Checks are green and the PR is mergeable. Anything blocking review? Happy to adjust.

@barlowa124
barlowa124 force-pushed the fix/scores-npz-confidence-arrays branch from e1072e0 to 342a32f Compare December 4, 2026 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants