Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transcript widget upates #474

Merged
merged 7 commits into from
Nov 13, 2024
Merged

Transcript widget upates #474

merged 7 commits into from
Nov 13, 2024

Conversation

garrettjstevens
Copy link
Contributor

@garrettjstevens garrettjstevens commented Nov 11, 2024

I've added a new view on the AnnotationFeature model called transcriptParts. It returns the list of all parts of a transcript including UTRs, CDS locations, and introns. the cdsLocations view on the AnnotationFeature model is now a reference to transcriptParts with everything but CDS locations filtered out.

This has been used to replace a lot of cumbersome custom transcript-parsing logic in the TranscriptDetailsWidget to make it easier to maintain and in some cases more accurate. Here are some of the changes:

  • "CDS and UTRs" section renamed to "Structure" (as in "Structural annotation")
  • Transcript structure is now given in 5` to 3` order for both strands
  • Extraneous entries in splice sites column removed
  • CDSs now color-coded by frame to match track coloring
  • New CDS frame color scheme based on the Okabe and Ito colorblind-friendly palette
    • Also gives reverse strand a unique color palette for easier identification
  • Color coding of sequence is more efficient and has improved visibility
  • "Copy sequence" action now copies HTML and plain text simultaneously, allowing "Paste" to keep colors and "Paste without formatting" to keep only text in applications like Google Docs.

Before

image

image

After

image

image

@garrettjstevens garrettjstevens self-assigned this Nov 11, 2024
@garrettjstevens garrettjstevens merged commit 73593c4 into main Nov 13, 2024
7 checks passed
@garrettjstevens garrettjstevens deleted the update_transcript_widget branch November 13, 2024 22:44
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.

1 participant