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.
This adds a "Splice" control, which removes introns from gene structure diagrams. It enables showing mature mRNA.
Overview
The transcript diagrams introduced in #309 include introns, as standard in genome browsers. These standard transcript diagrams each show a primary transcript, or pre-mRNA, which include introns. The new "Splice" control allows users to show the transcript without introns. This represents mature mRNA. Clicking the checkbox control toggles whether introns are sliced out.
User impact
This allows users to examine the relative size of untranslated regions (UTRs, teal) compared to coding sequence (CDS, yellow) -- without being visually overwhelmed by much larger intronic regions. These spliced, more mature mRNA features also more closely portray the molecules that are reversed transcribed into cDNA, then processed in e.g. bulk or single cell RNA-seq studies.
The spliced view can clarify analysis focused on exons. It could be especially powerful if future Ideogram development supported showing sample-level data from BAM / BAI, ATAC-seq, or small variation (e.g. SNPs / SNVs of clinical significance) beside this new exonic view.
Demo
Splice_gene_transcript__Ideogram_2022-09-12.mov
Compare the APOE mature mRNA shown above upon clicking "Splice" to the mRNA diagram in Figure 1 of Wu and Zhao (2016, PMC4829000):