Repository navigation
Add an Open Search preset and a Mass Shifts page that matches shifts to Unimod - #49
Closed
t0mdavid-m wants to merge 1 commit into
Closed
t0mdavid-m wants to merge 1 commit into
t0mdavid-m wants to merge 1 commit into
Conversation
…tation Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01D5Wo2FHPpi5a8X6GppNxEk
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Member
Author
|
Update: the one re-run of that job passed, so every check on this PR is green. Generated by Claude Code |
This was referenced Oct 29, 2026
Member
Author
|
Included in #52, which is merged. Closing. Generated by Claude Code |
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: the search only finds the modifications you configure, and there is no way to see which unexpected ones are in a sample. The precursor tolerance isn't shown on the Configure page.
After:
precursor_error_unitsDa,isotope_erroroff) for both the label-free and TMT searches.precursor_mass_tolerance,precursor_error_unitsandisotope_error.LinePlot) with each shift's peak labelled.Table) with the observed Δ, PSMs, interpretation, Unimod Δ, deviation in mDa, residues and other candidate modifications.How:
src/common/mass_shifts.pyis Streamlit-free.ModificationsDB.searchModificationsByDiffMonoMass, one entry per Unimod name. Common modifications rank first, and PSI-MOD duplicates are dropped. Shifts at 0 Da and at 1, 2 or 3 × 13C are labelled as such. When an isotope pick and a modification both fit, the closer one wins and the other is listed.Validation:
tests/test_mass_shifts.pyhas 8 tests:src/topp/CometAdapter.cppon release/3.5.0pytest tests/passed 121 tests.pylint --errors-onlyreports only the usual E0611 false positives onpyopenmsimports.Not tested end to end: a real Comet run with the preset, since the TOPP tools aren't available in my environment.
Generated by Claude Code