Skip to content

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
developfrom
claude/project-thread-r5cyia
Open

t0mdavid-m wants to merge 1 commit into
developfrom
claude/project-thread-r5cyia

Conversation

@t0mdavid-m

Copy link
Copy Markdown
Member

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):

  • Color by: Intensity (as before), QScore, cosine score or SNR of each mass.
  • Layers: show or hide masses by the number of charge states they were found in (1 charge, 2 charges, 3 or more).

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 adds qscore, cosine, snr and charge_states.
  • render._heatmap() applies it to the deconvolved heatmaps when a mass table exists, adds the mass table to the cache sources, and passes color_columns / layer_column at render time. Raw heatmaps are unchanged.
  • Test: 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:
before

After, color menu:
color menu

Colored by QScore:
by QScore

Layers menu:
layers

Masses in a single charge state hidden:
hide one charge


Generated by Claude Code

… 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
@coderabbitai

coderabbitai Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

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: 933581d3-0556-4784-910d-7c965a79c93f
  • 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

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