Repository navigation
Study View: a gene-state chart's Summary Data in the portal's codes (SD14) - #467
Merged
Merged
Conversation
…SD14) The user's answer (2026-11-19): write legacy's backend codes byte for byte. A mutation chart's file writes MUTATED / NOT_MUTATED / NOT_PROFILED and a copy-number chart's the discrete level (2, 1, 0, -1, -2) with NA for not profiled, as /api/mutation-data-counts and /api/genomic-data-counts give them; the rows' order and percentages are unchanged. The figure keeps the names on screen. Under OncoKB drivers only, a chart the portal does not have, the states keep their names. Seen on coadread KRAS: both files equal the portal's counts row for row. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q3ezTaCo6wHFVsML6Qd4ht
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Author
|
Review: pass. No blocking findings. Checked against the user's decision (2026-11-19, item 11: legacy codes byte for byte) and download-cases SD7/SD10/SD14:
Not blocking:
CI: gate-e2e and gate-warehouse are still pending; everything else is green. |
This branch was successfully deployed
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.
Summary
A gene-state chart's ☰ › Download › Summary Data now writes the portal's backend codes, byte for byte (SD14), as the user decided on 2026-11-19.
/api/mutation-data-countsgives them./api/genomic-data-countsgives them.geneStateCodeinlib/study-view-download.ts;summaryDownloadtakes the file's category for a value shown.Spec IDs
Verification
Against cbioportal.org, coadread KRAS:
/api/mutation-data-countsanswers MUTATED 218, NOT_MUTATED 316, NOT_PROFILED 60, and/api/genomic-data-counts(gistic) -1 67, -2 1, 0 390, 1 128, 2 6, NA 2.Browser, dev server, coadread, KRAS charted from both profiles: the two files read, in the portal's order (count, NA last):
NOT_MUTATED 316 53.2% · MUTATED 218 36.7% · NOT_PROFILED 60 10.1%0 390 65.7% · 1 128 21.5% · -1 67 11.3% · 2 6 1.0% · -2 1 0.2% · NA 2 0.3%No page errors.
Unit tests:
test/study-view-download-spec.test.ts:npm test6,931 pass, 0 fail;tsc --noEmitand eslint clean.Coverage: passes.
Planted bugs: 2 in
scripts/mutants/study-view/gene-summary-codes.ts(guardunit).Tracker
The line (docs/PORTAL-PARITY.md:444) is already ticked and stays as it is.
download-cases.md, row SD14 (was| SD14 | ⚠ Gene-state charts | Category is the state as the chart names it (Mutated,Not mutated,Not profiled, …). The portal writes its backend codes here (MUTATED,NOT_PROFILED,-2), while its Full Data and screen use names | SPS:10424-10431 vs SVU:2050-2061 |):| SD14 | ✓ Gene-state charts | Category is the portal's backend code, as its file writes it: MUTATED, NOT_MUTATED, NOT_PROFILED for a mutation chart; the discrete level (2, 1, 0, -1, -2), NA when not profiled, for a copy-number chart (
geneStateCode). Its Full Data and screen use names; so does ours. Under OncoKB drivers only, a chart the portal lacks, the names | SPS:10424-10431 vs SVU:2050-2061 |Preview
/lab?tab=explore&study=coadread_tcga_pan_can_atlas_2018: Add chart → Gene status → KRAS (Mutations, then GISTIC); each chart's ☰ › Download › Summary Data.🤖 Generated with Claude Code
https://claude.ai/code/session_01Q3ezTaCo6wHFVsML6Qd4ht
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.