Skip to content

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

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

barlowa124 wants to merge 1 commit 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.

@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.

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.

1 participant