Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions docs/PORTAL-PARITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,11 +257,12 @@ Wrong on cBioLab's own terms, whatever the portal does. Each is from a scorecard
- [ ] The views that join the OncoKB store per gene (`lib/federation.ts` driverJoin: gene tables, cancer types, exclusivity, pathways, and others) still call a structural variant by its genes' gene-level Fusion rows, which the store does not hold
- [ ] Tracks › Heatmap and generic-assay rows: ours lists raw profile ids (`rna_seq_v2_mrna_median_Zscores`) and shows the tab for several studies; the portal's profile names, hidden across studies. No Select / Clear all for entities, no bar or stacked generic-assay tracks, no categorical generic assay (ours refuses it) (ONC-TR-2, ONC-TR-3, ONC-TT-9, ONC-TT-10, ONC-TP-5, ONC-MD-2) ([01-oncoprint](legacy-spec/parity/01-oncoprint.md))
- [ ] Tracks › Groups and Custom Charts: ours "Cohort rows" (at most 3 document cohorts as Yes/No rows) and "Custom" uploads (ONC-TR-4) ([01-oncoprint](legacy-spec/parity/01-oncoprint.md))
- [ ] Layout and legend: no gap between the clinical and genetic groups; labels cut at 17 characters with no ⋮ button (ours: click the label); the Profiled rows named by alteration type ("Profiled for copy number alterations"; the portal's "Profiled in" + the profile's name); no "No alterations" legend entry and "Not profiled" listed when nothing is (ONC-LY-1, ONC-LY-2, ONC-LY-3, ONC-GL-6) ([01-oncoprint](legacy-spec/parity/01-oncoprint.md))
- [ ] Layout and legend: no gap between the clinical and genetic groups; labels cut at 17 characters with no ⋮ button (ours: click the label); the Profiled rows named by alteration type ("Profiled for copy number alterations"; the portal's "Profiled in" + the profile's name) (ONC-LY-1, ONC-LY-2, ONC-LY-3) ([01-oncoprint](legacy-spec/parity/01-oncoprint.md))
- [x] Display › show OQL filters is offered only when a row has OQL (`app/_oncoprint/OncoprintFigure.tsx:817`); the portal's View menu always has it, off by default without OQL, and on writes each row's default OQL line (ONC-VI-6, re-measured 2026-11-18) (#380)
- Ours alone: our oncoprint reads every mutation, copy-number and SV profile of a study, so the default line names every such type the study holds
- [x] A mutation's glyph class as the portal's getOncoprintMutationType: Translation_Start_Site, Start_Codon_SNP, nonstop and Fusion truncating; promoter by its protein change; unlisted types other (ONC-GL-2) (#436)
- [x] Display › show legends for clinical tracks, and under it only for altered patients / samples; off keeps the gene legend (ONC-VI-4, ONC-VI-5) (#444)
- [x] The gene legend ends with "No alterations" whenever a gene row is drawn, and "Not profiled" only when some cell is not (ONC-GL-6) (#451)
- [ ] Zoom and minimap: no editable zoom % box; ours drags a marquee to a selection bar where the portal drag-zooms; ours a minimap strip under the figure, the portal's a floating 150×150 panel with its own zoom (ONC-ZM-1, ONC-ZM-3, ONC-MM, ONC-MI-4) ([01-oncoprint](legacy-spec/parity/01-oncoprint.md))
- [ ] Hover and tooltips: no cell outline, column or label highlight; no label drag (ours Move up / down); the label tip without the OQL line or attribute / profile description; the cell tip without OncoKB and hotspot icons, the panel popup or "View these N" when zoomed out; a heatmap value without its profile type (ONC-MI-1, ONC-MI-3, ONC-MI-5, ONC-TP-1, ONC-TP-2, ONC-TP-4) ([01-oncoprint](legacy-spec/parity/01-oncoprint.md))
- [ ] Track menu: ours removes a gene from the view's genes, the portal's from `gene_list`; Show gaps and the % sides only once the track is the primary sort key (the portal sorts a-Z first) (ONC-TM-2, ONC-TM-3) ([01-oncoprint](legacy-spec/parity/01-oncoprint.md))
Expand Down Expand Up @@ -413,15 +414,15 @@ Wrong on cBioLab's own terms, whatever the portal does. Each is from a scorecard
- [x] A gene's mutation-type chart (STS-GS-2) (#433)
- [ ] Compare from a chart: Quartiles / Median across studies (ours one study only) (STS-STM-12)
- [x] Groups from every value whatever is checked (STS-HD-7) (#446)
- [ ] Density drag adds its ranges as custom bins on the Mutation Count and FGA bars (STS-SC-6)
- [x] Density drag adds its ranges as custom bins on the Mutation Count and FGA bars (STS-SC-6) (#449)
- [x] An attribute stored at both levels charted once, counted per sample (ours two facets) (STS-MD-5) (#403)
- [ ] Loading: the per-chart progress list and per-chart error text; the alert for sample ids in the URL that don't exist (STS-LY-10, STS-LY-11, STV-LD-4)
- [x] The case-lists chart only once a case list is filtered on (ours always shown) (STS-OT-2) (#441)
- [ ] Gene tables: the SV-pair table; the header tooltips' Alteration Filter variant, with the Alteration Filter menu (STS-GT-1, STS-GT-4)
- [ ] Manual submit: stage filters and apply them together (STS-FL-3, STS-MD-12)
- [ ] Found by the re-measurement of 2026-11-18 (master `bc53b944`):
- [ ] Card order by the portal's priorities for the non-clinical cards too (survival 400, density 200 ahead of the gene tables; SV 85 before CNA 80); priority < 0 dropped from Add chart (STS-LY-3, STS-LY-8)
- [ ] Chart titles centred and ellipsized on one line (ours wrap) (STS-HD-1)
- [x] Card order by the portal's priorities for the non-clinical cards too (survival 400, density 200 ahead of the gene tables; SV 85 before CNA 80); priority < 0 dropped from Add chart (STS-LY-3, STS-LY-8) (#448)
- [x] Chart titles centred and ellipsized on one line (ours wrap) (STS-HD-1) (#447)
- [x] Bar tooltip as the portal writes it: "Number of samples: n" / "Range: (35, 40]" (ours "35–40 · 11 patients") (STS-BAR-4) (#439)
- [x] Toggling Log Scale clears the chart's filter (ours keeps it) (STS-BAR-7) (#439)
- [x] Gene-table search over every column (# Mut, #, Freq, cytoband), not only the symbol (STS-GT-10) (#407)
Expand Down Expand Up @@ -449,7 +450,7 @@ Wrong on cBioLab's own terms, whatever the portal does. Each is from a scorecard
- [x] Case lists: all of them, by kind across studies, counted in samples, Freq of the selected samples (STS-OT-2; [empty-caselists-cases](legacy-spec/parity/empty-caselists-cases.md)) (#260)
- [ ] **Study View → filters, actions and tabs** ([31-study-view-shell](legacy-spec/parity/31-study-view-shell.md))
- [x] The Clinical Data tab: a table per case of the visible charts' attributes, with search, sort and download (STV-TAB-1, STV-CD-1…9, STV-STM-12; [clinical-tab-cases](legacy-spec/parity/clinical-tab-cases.md) CT1–CT12) (PR #274)
- [ ] Header tooltips (name, description, attribute id), "Cancer Study" as its own column, the tab in the URL
- [x] Header tooltips (name, description, attribute id), "Cancer Study" as its own column, the tab in the URL (#454, #390)
- [ ] The Columns menu (Clinical / Genomic / X vs Y) (STV-MD-13)
- [x] "Download clinical data" (⤓) for the selection: every attribute of each selected sample, `<study>_clinical_data.tsv` (STV-AB-4, STV-STM-5, STV-HD-2; download-cases PC9) (PR #273)
- [x] Filters in the URL: the bookmark, `#filterJson`, `filterAttributeId` / `filterValues` (STV-URL-2, STV-URL-3, STV-BM-1…3, STV-FB-7; see bugs) (#189)
Expand All @@ -473,17 +474,20 @@ Wrong on cBioLab's own terms, whatever the portal does. Each is from a scorecard
- [ ] Several separate ranges of one chart show as one pill each (STV-FB-4); the portal merges them into one interval from the first bar's start to the last's end (which reads wider than the filter)
- [ ] Add chart: the "% samples with data" column, Select all, the X vs Y and Genomic tabs; turning a chart off clears its filter (STV-AC-2, STV-AC-3, STV-AC-7, STV-STM-3)
- [x] Clinical: the Freq column, its order and greyed 0% rows, Select all (N) / Deselect all, unchecking clears the chart's filter (STV-AC-3, STV-AC-4, STV-STM-3; [add-chart-cases](legacy-spec/parity/add-chart-cases.md) AC1–AC8) (PR #276)
- [ ] The Genomic tab's frequencies, the gene tab's profile select with sample counts, gene sets and chart-type radios, a tab per generic-assay type; custom data with the portal's sign-in rules and "Unselected" for cases without a value (STV-AC-4…6, STV-AC-8, STV-STM-4, STV-STM-7)
- [ ] The Genomic and X vs Y tabs (STV-AC-2, STV-AC-7)
- [ ] The gene tab's profile select with sample counts, gene sets and chart-type radios; custom data with the portal's sign-in rules and "Unselected" for cases without a value (STV-AC-5, STV-AC-6, STV-STM-4, STV-STM-7)
- [x] A tab per generic-assay type (STV-AC-2, STV-AC-8) (#456)
- [ ] The X vs Y tab (STV-AC-7)
- [x] The Genomic tab, its charts and Freq (STV-AC-2, STV-AC-4) (#455)
- [ ] CN Segments and Plots tabs on the Study View (STV-CN-1…3, STV-PL-1, STV-STM-13)
- [x] CN Segments: offered when a selected study holds segments; the portal's info line and its 20,000-sample limit; the segments view over the selection (STV-CN-1, STV-CN-3, STV-STM-13; [study-cn-segments-cases](legacy-spec/parity/study-cn-segments-cases.md)) (PR #292)
- [ ] CN Segments' `.seg` download (STV-CN-2), with Per-sample CN segments' download
- [ ] Plots (STV-PL-1)
- [ ] Per-user layout: Save settings, the restore banner, reset charts (STV-LP-1…6, STV-AC-1, STV-MD-9, STS-MD-13)
- [ ] Found by the re-measurement of 2026-11-18 (master `bc53b944`):
- [ ] The Clinical Data tab's Columns menu (Add chart is hidden there), "Show more" and the 100vh − 220px table height (STV-CD-5, STV-CD-9, STV-MD-13)
- [ ] The selection as the portal writes it: "Selected: N patients | M samples" (STV-AB-1)
- [ ] Gene, case-list and other generic pills with the portal's lower-case "or", parentheses and outer "and" (STV-FB-2); a density drag shown on its chart only, not as two range pills (STV-FB-3b)
- [x] The selection as the portal writes it: "Selected: N patients | M samples" (STV-AB-1) (#452)
- [ ] A density drag shown on its chart only, not as two range pills (STV-FB-3b)
- [x] Gene, case-list and other generic pills with the portal's lower-case "or", parentheses and outer "and" (STV-FB-2) (#453)
- [ ] The guided tour after load (STV-LD-7)
- [ ] **Comparison → page, Overlap, Survival and Clinical tabs** ([20-comparison-core](legacy-spec/parity/20-comparison-core.md))
- [ ] The Clinical tab tests every attribute (coadread 45; ours the 8 best covered, so a Sex comparison does not test SEX), as a table with p, q, type and test, sort, filter, download and a click-through plot (ours a −log₁₀ q bar chart of raw ids) (CMP-CL-2…4, CMP-STM-8; see bugs)
Expand Down
2 changes: 1 addition & 1 deletion docs/legacy-spec/parity/01-oncoprint.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ Counts in Q1–Q5 match as on 2026-11-10; the earlier figures (Q2 per sample, Q3
| ONC-GL-3 | ✅ | C | One glyph per layer, legacy priority, driver before VUS; no per-count tiebreak, no germline stripe |
| ONC-GL-4 | ✅ | C | MUT, AMP/HOMDEL (±2 only), FUSION drawn; a line's EXP / PROT as mRNA / protein high and low in the cells |
| ONC-GL-5 | ✅ | BC | OncoKB, Cancer Hotspots (on by default) and the study's custom calls (#168, #211) |
| ONC-GL-6 | 🟡 | B | Unchanged: lists only present glyphs; "Not profiled" always listed; no "No alterations" entry (legacy Q1 lists it) |
| ONC-GL-6 | ✅ | B | Lists only present glyphs; then "No alterations" whenever a gene row is drawn and "Not profiled" only when one is not, last in that order (`geneLegend`, `glyphPresence`); coadread KRAS TP53 no Not profiled, msk_impact_2017 with NEGR1 both (#451) |

Glyph table (colours, bands, z-order) matches legacy exactly for every row present; GAIN/HETLOSS and Germline rows are absent (see OQL coverage / germline gaps).

Expand Down
8 changes: 4 additions & 4 deletions docs/legacy-spec/parity/30-study-summary.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ Data version: every count matches exactly, so the warehouse holds the same coadr
|---|---|---|---|
| STS-LY-1 | 🔶 | B | CSS grid `.facetgrid`, cards ~301 px wide, 5 columns at 1600 px; heights follow content; not react-grid-layout |
| STS-LY-2 | 🔶 | B | Fixed shapes: clinical cards one cell; gene tables, survival, density, data types wider; no w×h model |
| STS-LY-3 | 🟡 | BC | Clinical charts by priority, then name (`lib/study-view-config.ts:31`, `lib/explore.ts:322`); the other cards in a fixed CSS order (`app/globals.css:248-253`): gene tables first, survival and density last (legacy ranks them 400 / 200, above the gene tables); no findSpot |
| STS-LY-3 | 🟡 | BC | Every card by priority, then name, clinical and other kinds together (`cardOrders`, `lib/study-view-config.ts`); charts the reader adds last; no findSpot (the grid flows in order) |
| STS-LY-4 | ❌ | B | No drag |
| STS-LY-5 | ❌ | B | No resize |
| STS-LY-6 | ❌ | C | No highlight of a newly added chart |
| STS-LY-7 | ✅ | BC | The portal's defaults (#188): coadread charts 17 of 59, Sex, Race, Ethnicity and Subtype among them; constant charts (Cancer Type, Samples per Patient) hidden |
| STS-LY-8 | 🟡 | C | ↓ Clinical priorities and the DB-priority-1 override from the portal's table (`lib/study-view-config.ts:11-28`); priority < 0 still offered in Add chart (legacy drops it); the non-clinical priorities (survival 400, density 200, SV 85 before CNA 80) not used, CSS order instead |
| STS-LY-8 | ✅ | C | Clinical priorities and the DB-priority-1 override from the portal's table; the non-clinical priorities (`CARD_PRIORITY`: survival 400, density 200, SV 85 before CNA 80, …); priority < 0 dropped from Add chart (`chartOffered`) |
| STS-LY-9 | 🔶 | BC | Pie only for `PIE_ATTRIBUTES` (SEX, GENDER, *_STATUS, SAMPLE_TYPE, SOMATIC_STATUS; `explore-sections.tsx:57`), every other STRING a list; NUMBER → histogram ✅ |
| STS-LY-10 | 🟡 | B | Skeleton grid while building, "updating…" over survival/density, busy class on the grid; no progress list, no per-chart error text beyond the API error |
| STS-LY-11 | 🟡 | BC | 0 samples: the portal's message, no charts, the filter bar kept ([empty-caselists-cases](empty-caselists-cases.md) EM1–EM5). No invalid-sample alert, no saved-layout banner |
Expand All @@ -134,7 +134,7 @@ Data version: every count matches exactly, so the warehouse holds the same coadr

| ID | verdict | how | note |
|---|---|---|---|
| STS-HD-1 | 🟡 | B | ↓ displayName + "· sample-level · N samples"; gene tables "Mutated Genes (534 profiled samples)" (#261) ✅; but left-aligned and wrapped over two lines ("American Joint Committee on Cancer Metastasis Stage Code"), not centred and ellipsized (`.facettitle`, `app/globals.css:669`) |
| STS-HD-1 | ✅ | B | displayName centred on one line, ellipsized ("American Joint Committee on Cancer M…"), the whole name in the tooltip; gene tables "Mutated Genes (534 profiled samples)" (#261); ours adds a count line under the title ("sample-level · 1,084 samples") |
| STS-HD-2 | 🔶 | B | "…" menu button always visible, not hover-only |
| STS-HD-3 | ❌ | B | No ⓘ, ↶ reset, ✕ delete buttons; only the "…" menu (remove a filter via its pill, hide a chart via Add chart) |
| STS-HD-4 | 🟡 | B | Title `data-tip` = "ID — description"; no survival unit lines |
Expand Down Expand Up @@ -219,7 +219,7 @@ Data version: every count matches exactly, so the warehouse holds the same coadr
| STS-SC-3 | ✅ | BC | Pearson and Spearman with p, as the portal writes them; shown whenever n > 2 (⚠ S9) |
| STS-SC-4 | ✅ | B | "Number of Samples", the x range to 2 places, the y range as formatRange |
| STS-SC-5 | ✅ | B | Swap Axes, Log Scale X / Y on the MC axis (kept by the browser); Download ▸ SVG, PDF with the legend and coefficients inside the file ([download-cases](download-cases.md) FG8); Data, the samples with both values (PC7) |
| STS-SC-6 | 🟡 | C | Drag a box → two range clauses (MC rounded to whole counts, FGA by span) (`explore-charts.tsx:89-92`); no custom bins added to the bar charts |
| STS-SC-6 | ✅ | C | Drag a box → two range clauses (MC rounded to whole counts, FGA by span), and their ends added to the two bar charts as a temporary set of edges while the filters hold (`withDensityBins`) |
| STS-SC-7 | ✅ | C | Own filters included (the plot is drawn over the draft) |
| STS-SC-8 | 🐞 ok | C | Legacy dead code / out-of-range bin bug not present |

Expand Down
Loading
Loading