Skip to content

Viewer: sequence coverage map of the picked protein - #200

Open
t0mdavid-m wants to merge 6 commits into
mainfrom
claude/project-thread-wbyk3x
Open

t0mdavid-m wants to merge 6 commits into
mainfrom
claude/project-thread-wbyk3x

Conversation

@t0mdavid-m

Copy link
Copy Markdown
Member

Requested by Tom · project thread

What it does

A new Viewer component, Sequence coverage of the picked protein, draws the peptides of the protein picked in the protein table along its FASTA sequence:

  • one track per condition, plus "All files" for files without a condition;
  • bars are coloured by PSM count, and modifications are marked on them;
  • clicking a bar picks that peptide, so the peptide and PSM tables follow (they share the run's Insight state);
  • the header shows how many positions are covered.

It replaces the HTML coverage line below the peptides table. It is part of the Identification view, below the protein and peptide tables, and needs identification like the other identification components.

How

  • src/common/protein_table.py: coverage_rows() turns the long PSM table and the FASTA into the SequenceCoverage columns. It places each peptide at its first match in the protein sequence and reads modification positions with pyOpenMS.
  • src/viewer/protein_data.py: protein_coverage() builds the component through the template panel src/viz/identification/sequence_coverage.py, which is brought in by merging template branch claude/project-thread-qa2e0z.
  • New panel src/viewer/panels/protein_coverage.py, plus catalog, preset and help text entries.
  • Tests: 3 new tests in tests/test_protein_table.py. The full suite passes (1568 passed, 14 skipped).

Depends on

Screenshots

GitHub's API can't upload media, so the screenshots and the video are attached in the project thread:

  • opendda-coverage-light.png and opendda-coverage-dark.png: CAH1_HUMAN in the UPS2 example, tracks UPS2_ratio01 and UPS2_ratio10.
  • opendda-bar-filters-psms.png: after clicking a bar, the PSM table shows only that peptide.
  • opendda-coverage-click.mp4: picking a protein, then a peptide.

Generated by Claude Code

…, feature XIC, condition scatter

Panels NASE-weis draws, written against column contracts like the others:
the matches of a reference drawn under it per group, a spectrum whose
assigned peaks are coloured by ion series with the fragment table linked to
it, a feature's XIC with its bounds, and one condition's means against
another's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FkEGekgDRB78HXZAqDXxJN
deploy.desktop_app.same_openms_as_images: false skips the check that the
desktop app and the full Docker images name the same OpenMS, for an app
pinned to a nightly commit its images cannot clone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FkEGekgDRB78HXZAqDXxJN
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FkEGekgDRB78HXZAqDXxJN
A new component, "Sequence coverage of the picked protein", draws the
peptides of the protein picked in the protein table along its FASTA
sequence, one track per condition, coloured by PSM count and with
modification marks. Clicking a peptide picks it, so the peptide and PSM
tables follow. It replaces the HTML coverage below the peptides table
and is part of the Identification view. Needs openms-insight's
SequenceCoverage; without it the component says so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FkEGeqARB7RGFuMMYStfGR
@coderabbitai

coderabbitai Bot commented Nov 27, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2b7806a7-7b41-482e-9e8d-afe8038bb1c5
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@t0mdavid-m t0mdavid-m self-assigned this Nov 27, 2026

Copy link
Copy Markdown
Member Author

The test (ubuntu-latest, 3.11) failure is not caused by this PR's own code. Two template tests come in with the template merge, and both need openms-insight 0.7.10:

  • tests/test_viz_nucleic_acid_panels.py::test_fragment_spectrum_rows_and_component fails with KeyError: 'colorColumn'. It needs LinePlot color_column.
  • tests/test_viz_nucleic_acid_panels.py::test_sequence_coverage_rows_and_component fails because there is no openms_insight.SequenceCoverage.

CI installs the pinned 0.7.9. The rest of the suite passes: 1569 tests.

What blocks the fix: openms-insight 0.7.10 (t0mdavid-m/OpenMS-Insight#151) is not on PyPI yet. Once it is published, bumping requirements.txt to openms-insight==0.7.10 makes these tests pass. Until then, the coverage panel shows a note instead of the map.


Generated by Claude Code

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