Repository navigation
Viewer: identification diagnostics, why a run has few PrSMs - #303
Open
t0mdavid-m wants to merge 7 commits into
Open
t0mdavid-m wants to merge 7 commits into
t0mdavid-m wants to merge 7 commits into
Conversation
A new Quality control component follows the run's MS2 spectra step by step to a PrSM (with deconvolved masses, with a precursor mass, with sequence tags, matched to a proteoform, within q <= 0.01) and names, for the steps that lose more spectra than is usual, the likely cause and the setting to look at: spectra not centroided or charge/mass ranges, no MS1 spectra, minimum tag length, database or modifications, no decoys, and a fragment calibration offset against the tolerance. Everything comes from results the workflow already stores. It is part of the Lysate view and needs identification. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FkEGenPuCZm1euuvRbgjQh
Contributor
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FkEGenPuCZm1euuvRbgjQh
…xed spectrum count The example runs were cut to where they differ, so the test checks the order of the steps instead of 164 MS2 spectra. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FkEGenPuCZm1euuvRbgjQh
One row per step from acquisition to the identifications kept, with the MS2 spectra left, their share and the likely cause where a step loses more than usual. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FkEGenPuCZm1euuvRbgjQh
… steps table Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FkEGenPuCZm1euuvRbgjQh
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.
Requested by Tom · project thread
Depends on OpenMS/streamlit-template#611, which adds the table component to the visualization library. This branch merges that change. Merge the template PR first; the next template sync then brings the same file.
What it does
A new Quality control component, Identification diagnostics (why few PrSMs), follows the MS2 spectra of an identified run through each step on the way to a PrSM:
Each row gives its number of spectra and its share of the run's MS2 spectra. Where a step loses more spectra than is usual, the row also names the likely cause and the setting to check. At most three causes are named, most telling first. A line above the table gives the run's PrSM rate.
Everything is computed from results the workflow already stores: the scan table, PrSMs, tags and annotation settings. Nothing is run again.
The component needs identification. It is part of the Lysate view, and the editor's palette offers it for any view.
Implementation
src/render/id_diagnosis.pyis Streamlit-free. It is the source that turns FLASHApp's results into the table's columns:steps()counts the spectra and leaves decoys out.diagnose()builds the table.headline()writes the line above it.render.py::_render_id_diagnosticsdraws the table with the library componentsrc/viz/identification/identification_steps.py(from the template PR).catalog.pyholds the catalog entry and the Lysate layout row.tests/test_id_diagnosis.pyhas 10 tests:Screenshots and video
Native example (one MS2 spectrum, no MS1): the missing precursor mass and the calibration offset are named.
Lysate example: no step loses more spectra than usual.
Video (Viewer → native run → Lysate view → diagnostics): https://github.com/OpenMS/FLASHApp/blob/claude/project-thread-l92o2z-media/id-diagnostics/id-diagnostics.mp4
Moving the columns into the library did not change the table's look; the constructor arguments are the same.
🤖 Generated with Claude Code
https://claude.ai/code/session_01FkEGenPuCZm1euuvRbgjQh