Repository navigation
Viewer: move between the protein, peptide and PSM tables with the keyboard - #175
Open
t0mdavid-m wants to merge 4 commits into
Open
t0mdavid-m wants to merge 4 commits into
t0mdavid-m wants to merge 4 commits into
Conversation
…tification tables The protein, peptide and PSM tables pass level, show_position and narrowed_labels to the openms-insight Table. Options the installed openms-insight does not take yet are left out (table_options), so the tables keep working until a release with them is installed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D5Wo2FHPpi5a8X6GppNxEk
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
# Conflicts: # src/common/insight_tables.py # src/viewer/protein_data.py
The protein, peptide and PSM tables get their level, position column and narrowed labels from display() of the template's src/viz tables (OpenMS/streamlit-template#617) instead of an app copy; until the template sync brings it they draw without them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D5Wo2FHPpi5a8X6GppNxEk
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.
Before: in the Identification view, the protein, peptide and PSM tables only linked by clicking. Nothing showed where the picked row sat or what a table below had been narrowed to, and keyboard focus stayed in the table that was clicked.
After: Enter (or a double click) on a protein moves the keyboard to its peptides, and Enter on a peptide moves it to that peptide's PSMs. Backspace goes one table back up. Each table shows where its picked row is ("3 of 12"), and the peptide and PSM tables show a chip with the protein and peptide they are narrowed to.
The three tables pass
levelandnarrowed_labelsto the openms-insightTable. These options come from openms-insight #119 and #121. The template's visualization library gives them (display()ofprotein_table,protein_peptidesandprotein_psms), and passes only the options that the installed openms-insight'sTableaccepts. With openms-insight 0.7.5 from PyPI, the tables look and behave as they do today. The new behaviour turns on once a release with those two PRs is installed, so therequirements.txtpin should be raised then.How:
show_insight_tabletakes a newdisplaydict. Its options are not part of the table's cache and are given only to the renderedTable.protein_data._placetakes each table's options from the library'sdisplay().Screenshots
Rendered with a local openms-insight build that merges #117, #119 and #121 (#117, the row position, was later dropped), on an example run of three files.
Light theme: after Enter on a protein and then on a peptide, the PSM table has the keyboard and its chips name the protein and peptide.
Dark theme: after Enter on a protein, the peptide table has the keyboard.
Video (mp4): click a protein, then Enter, Down, Enter, Down, Backspace, Backspace.
Checks
python -m pytest test_gui.py tests/: 1318 passed, 6 skipped.tests/test_viewer_levels.pycovers taking the place from the library, and a library without it.pylint --errors-onlyon the changed files: clean.Depends on OpenMS/streamlit-template#617: the options now come from the template's visualization library, so this PR keeps no copy of them. Until that PR reaches OpenDDA through the template sync, the app draws as before, without them.
Generated by Claude Code