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

Add configuration of transcriptTypes and containerTypes to the svg feature rendering #4615

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

cmdcolin
Copy link
Collaborator

What this PR does

it creates the notion of explicit "containerTypes" which create multi-row feature rendering, like the gene glyph. it also makes configurable the notion of "transcriptTypes" which was hardcoded to "transcript","primary_transcript", and "mRNA".

Background

This PR helps address concerns in #4599

The issue brought up previous relied on what was basically a bug to allow a GFF with a parent feature with children to be rendered as multiple rows in the output

This multi-row rendering is pretty specialized to "gene" style rendering but worked well for their case

Therefore, this PR proposes "containerTypes" (which render as multiple rows, like the gene glyph) and then also "transcriptTypes" which corresponds with ProcessedTranscript types.

Footnote

It would be good to allow clicking the subrows of these containerTypes (e.g. for a normal gene glyph, click an individual transcript) but that is still an ongoing todo.

@cmdcolin cmdcolin mentioned this pull request Oct 23, 2024
@cmdcolin cmdcolin merged commit 931672e into main Oct 23, 2024
4 checks passed
@cmdcolin cmdcolin deleted the container_types branch October 23, 2024 19:47
@cmdcolin cmdcolin added the enhancement New feature or request label Oct 23, 2024
@cmdcolin cmdcolin changed the title Add notion of transcriptTypes and containerTypes to the svg feature rendering Add configuration of transcriptTypes and containerTypes to the svg feature rendering Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant