Repository navigation
desktop: visDIA shows the CV of the peptides you list (#374) - #409
Merged
Merged
Conversation
Pin visDIA at e0b4bf2 (CompOmics/visDIA#17). Its Quant QC page gets a card "CVs of your peptides": a pasted or typed list of sequences, peptidoforms (with /z for one charge), protein accessions or entry names, with * and ? wildcards; per condition each matched precursor's CV with the runs that had a value, the list's median CV next to every precursor's, and entries that matched nothing as not identified. It reuses the page's CVs (same quantity, conditions, keys and rule). The viewer's conditions now start from the manifest's experiment.conditions, and a run without a recorded input is suggested from its name. No engine output changes; only the requirement file the application compiles in, its comment, the changelog and the desktop README. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Same tree as e0b4bf2, now on visDIA's main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # CHANGELOG.md
RobbinBouwmeester
marked this pull request as ready for review
December 1, 2026 10:03
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.
For #374 (show the CV for a subset of peptides the user is interested in, in visDIA).
visDIA is its own repository; the desktop application installs it from a pinned commit. The feature is in CompOmics/visDIA#17 (draft), and this PR moves the pin to that branch's commit e0b4bf2 and documents it. Move the pin to visDIA's merge commit once visDIA#17 is merged, before this leaves draft.
What the user sees
Open in visDIA -> Quant QC. Under "CVs within conditions" (experiments with two or more runs) a new card CVs of your peptides:
peptidoform/charge, protein group, and per conditionCV% (values/runs)or "no CV"; then each entry that matched nothing as "not identified: no precursor accepted at precursor_q <= t matches it";Quantity and CV
The card reuses the page's existing CV path (no second implementation): the toolbar's quantity, MaxLFQ precursor quantity by default in an experiment or each run's
peptide_quant.quantityon the toggle; the toolbar's keys (accepted atprecursor_q, or all quantified); the CV-needs toggle (a value in every run of the condition, or at least two values). CV = sample SD (n - 1) / mean of the linear quantities of the condition's runs with a value. The card's subtitle names the quantity. The recipe'squantity_normalisedis not one of the viewer's sources (neither CV card reads it).Conditions
CVs are per condition, from the page's Conditions card. Two changes there: the conditions now start from
experiment.conditionsof the manifest, i.e. what the user typed on the Search screen; and a run without a recorded input file is suggested from its run name (A_01,B_02->A,B) where it used to be a condition of its own (no CV at all). Edits in the card still win. A result whose conditions all have one run shows "No condition has two runs ... group the runs in the Conditions card".Matching
Plain sequence: every peptidoform of it (modified or not, every charge). Peptidoform with modifications: that one.
/2: one charge. No precursor match: taken as a protein (whole protein_group, a;member, or a|part such asP12345/NAME_HUMAN), giving every precursor of its groups.*and?are wildcards. Case-insensitive.Validation
pytest tests1473 passed, 21 skipped (real-data variables unset); ruff clean; new tests for parsing, every matching rule, subset CVs against numpy and against the whole-experiment CVs of the same rows, the answer function and the Dash callback.env/console-visdia-requirements.txtresolved (duckdb 1.5.6, dash 4.5.2) and imports the new code;python ci/check_console_envs.pyok.cargo fmt --check,cargo clippy --all-targets --locked -- -D warnings,cargo test --lib --locked(241 passed),python ci/check_desktop_ui.py,node ci/test_desktop_ui.mjs(40) all pass.Not done
🤖 Generated with Claude Code