Skip to content

Issue 55263: Compute Passport normalization sums once per sample file - #1307

Merged
labkey-jeckels merged 2 commits into
release26.11-SNAPSHOTfrom
26.11_fb_passport_sumarea_55263
Nov 17, 2026
Merged

labkey-jeckels merged 2 commits into
release26.11-SNAPSHOTfrom
26.11_fb_passport_sumarea_55263

Conversation

@labkey-jeckels

@labkey-jeckels labkey-jeckels commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Rationale

Make the Passport protein page load quickly on large folders (Issue 55263). The page's query recomputed the normalization-standard sum in a correlated subquery for every precursor/replicate row, rescanning each sample file's chrom infos every time; one reported protein took 37 s, almost all of it in that subquery. The reproducibility report variant of the page never uses the sum at all.

Changes

  • Normalization sums are fetched once per sample file, and only for proteins with Before/After incubation replicates
  • When a document has no Normalization standards, After intensities fall back to raw areas instead of being dropped as NaN
  • Sums are computed in double precision, so they no longer depend on row order
  • PassportTest now verifies normalized intensities against the expected before/after normalization ratio

Tasks

  • Claude Code Review
  • Manual Testing - N/A
  • Test Automation

Tested locally: PassportTest and TargetedMSMxNReproducibilityReportTest pass. The expected ratio was captured from develop before the change.

The per-row SumArea subquery made Passport protein pages take 30+ seconds on large folders; sums are now fetched only for Before/After replicates, with a fallback to raw areas when a document has no Normalization standards.
@labkey-jeckels
labkey-jeckels merged commit bd3523c into release26.11-SNAPSHOT Nov 17, 2026
6 of 8 checks passed
@labkey-jeckels
labkey-jeckels deleted the 26.11_fb_passport_sumarea_55263 branch November 17, 2026 01:08
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.

2 participants