Skip to content

Show all RefSeq transcripts in Patient View IGV with expanded display mode#5611

Draft
Copilot wants to merge 2 commits into
masterfrom
copilot/change-default-transcript-igv
Draft

Show all RefSeq transcripts in Patient View IGV with expanded display mode#5611
Copilot wants to merge 2 commits into
masterfrom
copilot/change-default-transcript-igv

Conversation

Copilot AI commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

The IGV component in Patient View only displayed 2 RefSeq transcripts without a scrollbar, causing mutations (e.g. TP53 x125_splice) to fall outside the visible annotation. This happened because the genome: 'hg19' shorthand loads IGV's default collapsed annotation track.

Changes

  • src/shared/lib/IGVUtils.ts: Added defaultRefSeqTrackProps(genomeId) returning ncbiRefSeq track config with displayMode: 'EXPANDED'; fixed broken hg38 cytobandURL
  • src/pages/patientView/genomicOverview/GenomicOverview.tsx: Expanded view now uses explicit reference with RefSeq track instead of genome shorthand, matching the pattern already used by compact view
  • src/shared/lib/IGVUtils.spec.ts: Tests for new helper

Approach

Instead of relying on IGV's opaque genome definition (which controls track display internally), we now provide the reference and annotation track explicitly:

reference: {
    ...defaultGrch37ReferenceProps(),
    tracks: [defaultRefSeqTrackProps('hg19')], // displayMode: 'EXPANDED'
},

This ensures all RefSeq transcripts render with a scrollbar, making splice-site mutations visible in the annotation context.

@netlify

netlify Bot commented Jun 15, 2026

Copy link
Copy Markdown

Deploy Preview for cbioportalfrontend ready!

Name Link
🔨 Latest commit adc77b9
🔍 Latest deploy log https://app.netlify.com/projects/cbioportalfrontend/deploys/6a2f5662d2df1000096ee5e4
😎 Deploy Preview https://deploy-preview-5611.preview.cbioportal.org
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

…in expanded mode

Switch expanded IGV view from using `genome` shorthand to explicit
`reference` with RefSeq annotation track configured with
`displayMode: 'EXPANDED'`. This shows all transcripts with a scrollbar
instead of only the first two.

Also fixes the incomplete hg38 cytobandURL.
Copilot AI changed the title [WIP] Change default transcript of IGV in patient view Show all RefSeq transcripts in Patient View IGV with expanded display mode Jun 15, 2026
Copilot finished work on behalf of jjgao June 15, 2026 01:34
Copilot AI requested a review from jjgao June 15, 2026 01:34
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