Repository navigation
Deconvolved heatmaps: color by QScore, cosine score or SNR, show or hide masses by charge states - #300
Open
t0mdavid-m wants to merge 1 commit into
Open
Deconvolved heatmaps: color by QScore, cosine score or SNR, show or hide masses by charge states#300t0mdavid-m wants to merge 1 commit into
t0mdavid-m wants to merge 1 commit into
Conversation
… charge states The deconvolved MS1 and MS2 heatmaps join each point to its mass in the mass table, so the toolbar can color the masses by QScore, cosine score or SNR and show or hide them by how many charge states they were found in. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FkEGepMGFjQpUf3ahLDYh2
Contributor
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
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.
Requested by Tom · project thread
What it does
The deconvolved MS1 and MS2 heatmaps now use the heatmap toolbar's color by and layers controls (openms-insight 0.7.5):
This makes it quick to see where the well-scored masses sit in the run, and to hide the masses found in a single charge state.
How
insight_data.with_mass_scores()joins each heatmap point to its mass in the stored mass table by (spectrum, mass index) and addsqscore,cosine,snrandcharge_states.render._heatmap()applies it to the deconvolved heatmaps when a mass table exists, adds the mass table to the cache sources, and passescolor_columns/layer_columnat render time. Raw heatmaps are unchanged.test_mass_scores_join_the_heatmap_by_spectrum_and_mass(MS1 and MS2, on the example workspace).pytest tests/: 1477 passed; pylint errors-only clean.Screenshots (example workspace, Deconvolution view)
Before:

After, color menu:

Colored by QScore:

Layers menu:

Masses in a single charge state hidden:

Generated by Claude Code