Surface profile data caveats as a per-track warning in OncoPrint - #5637
Draft
inodb wants to merge 1 commit into
Draft
Surface profile data caveats as a per-track warning in OncoPrint#5637inodb wants to merge 1 commit into
inodb wants to merge 1 commit into
Conversation
A molecular profile whose profile_description contains a 'Caveat:' marker now shows a warning icon on every OncoPrint track from that profile, with the caveat text in a hover tooltip. Lets curators flag how data should be interpreted (e.g. cell-type fractions from a sorted population) without the caveat being buried in the profile description. - getProfileDescriptionCaveat() parses the 'Caveat:' marker from a description - generic-assay heatmap & categorical track builders set the warning + tooltip - IHeatmapTrackSpec / ICategoricalTrackSpec gain infoTooltip (genetic tracks already had it), wired through DeltaUtils - oncoprintjs track-info view renders non-numeric info verbatim instead of coercing it to 'N/P', so the glyph displays (N/P still shown for the not-profiled sentinel; numeric percents unchanged) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JEbP4a7tGv74r3RtNYt7Jw
✅ Deploy Preview for cbioportalfrontend ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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
A molecular profile whose
profile_descriptioncontains aCaveat:marker now shows a ⚠ warning icon on every OncoPrint track from that profile, with the caveat text in a hover tooltip. This lets study curators flag how data should be interpreted — e.g. cell-type fractions derived from a sorted cell population — without the caveat being buried in the profile description where viewers won't see it.Motivating case: the
msk_spectrum_tme_2022single-cell cell-type fraction profiles are derived from CD45 FACS-sorted scRNA-seq, so a sample's composition reflects its sort gate (some samples are immune-only or non-immune-only) rather than whole-tumor cellularity. A 100%-summing stacked/heatmap track is misleading without surfacing that.Screenshot
Each cell-type track shows a ⚠ (the genetic BRCA1 track is unaffected — numeric percents still render). Hovering the ⚠ shows the caveat text, e.g. "Fractions are derived from CD45 FACS-sorted scRNA-seq, so each sample composition reflects its sort gate (some samples are immune-only or non-immune-only) rather than whole-tumor cellularity."
(Captured locally with the caveat injected, since the live study data doesn't carry the
Caveat:marker until cBioPortal/datahub#2342 merges — the deploy preview won't show the ⚠ until then.)How
getProfileDescriptionCaveat()parses theCaveat:marker (case-insensitive) from a profile description.IHeatmapTrackSpec/ICategoricalTrackSpecgaininfoTooltip(genetic tracks already had it); wired throughDeltaUtilsto$track_info_tooltip_elt.N/P, so the ⚠ glyph displays.N/Pis still shown for the not-profiled sentinel and numeric percents are unchanged.The convention is generic — any profile gets the warning for free by writing
Caveat: …in its description. Companion datahub change: cBioPortal/datahub#2342. Docs change to follow.Preview
🤖 Generated with Claude Code