Skip to content

Refactor Linear Apollo Display glyph drawing#725

Open
garrettjstevens wants to merge 16 commits intomainfrom
refactor_glyph_draw_lad
Open

Refactor Linear Apollo Display glyph drawing#725
garrettjstevens wants to merge 16 commits intomainfrom
refactor_glyph_draw_lad

Conversation

@garrettjstevens
Copy link
Contributor

This is another part (following #724) of refactoring the drawing code to be easier to maintain. This works on the Linear Apollo Display glyphs draw() methods. Three new glyph were addeed: TranscriptGlyph, ExonGlyph, and CDSGlyph. Having the drawing code broken out into separate glyphs makes it a lot easier to track. It also allows the track to now draw transcripts that don't have a gene parent with the TranscriptGlyph, where before it used the GenericChildGlyph. It also fixes it so that the track doesn't draw out of bounds when displaying multiple regions.

This only addresses drawing, selected/hovered feature highlighting, hovering, drag preview drawing, etc. is not addressed by this and most of those still don't work correctly when displaying muliple regions. It also doesn't address the Linear Apollo Six Frame Display.

image

@garrettjstevens garrettjstevens self-assigned this Nov 5, 2025
@haessar
Copy link
Contributor

haessar commented Nov 6, 2025

As the draw method for the LASFD GeneGlyph is so bespoke, perhaps it's not an issue? Do you envisage that it could be broken by this refactor?

@garrettjstevens
Copy link
Contributor Author

@haessar This refactor shouldn't break anything in the LASFD, I meant that the original out-of-bounds drawing issue that prompted this still exists in the LASFD after this refactor. I'll clarify that in the original issue #721.

@garrettjstevens garrettjstevens force-pushed the refactor_glyph_draw_lad branch from 54df42e to 55a293a Compare December 2, 2025 22:13
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