Repository navigation
Match fragments: compare the proteoforms tried against one mass list - #243
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
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FkEGeok3SERJh8beVS6Mfr
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FkEGeok3SERJh8beVS6Mfr
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FkEGeok3SERJh8beVS6Mfr
Contributor
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
…ead-54ihjf # Conflicts: # content/Tools/FragmentMatcher.py
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.
What changes
Compare proteoforms is a new section below the sequence view on the Match fragments page.
You change the sequence, its modifications or the ion types in the view, then press Add this proteoform. Each proteoform you add becomes one row in a table:
★ marks the row with the most matched fragments; ties go to more cleavages, then to the smaller |Δ mass|. Adding the same proteoform at the same tolerance again replaces its row. Selected rows can be removed. The table belongs to the mass list: it is kept in
<workspace>/fragment-matcher/hypotheses.json, and a new mass list starts an empty table.The numbers come from the view itself. It writes the fragments it matched, together with the proteoform, to the
fragment_matchesselection, so the table always agrees with the view's own fragment table and "% Residue cleavage". This needs OpenMS-Insight #85 (set_fragment_matches_proteoform). The section is behindhasattr, so with an older openms-insight the page looks as before. Raise the pin once #85 is released.The rows are built and stored by Streamlit-free functions in
src/fragment_matcher.py(hypothesis,add_hypothesis,load_hypotheses,remove_hypotheses,best_hypothesis).Screenshot and video
Scan 4268 of the lysate example (Load an example), with three proteoforms tried: HU-alpha as is, without the initiator Met, and without Met plus N-terminal acetylation. HU-alpha as is matches 82 fragments, 61% of the bonds, and is 0.4 ppm from the precursor.
Video: compare-proteoforms.mp4
The media are committed in a8f9886 and removed in the next commit.
Checks
pytest tests/: 1028 passed, 3 skipped. New tests intests/test_fragment_matcher.pycover the row taken from the view's matches, storage per mass list, replacing a row, removing rows, and the best row.pylint --errors-onlyon the changed files: clean.Generated by Claude Code