Add typed Cell Annotation provider interfaces and replay plugin registration#71
Merged
yulewu merged 3 commits intoMar 17, 2026
Conversation
Co-authored-by: yulewu <38241047+yulewu@users.noreply.github.com>
Co-authored-by: yulewu <38241047+yulewu@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] [HartmannLab/UELer#15] Define lightweight typed interfaces
Add typed Cell Annotation provider interfaces and replay plugin registration
Mar 17, 2026
yulewu
approved these changes
Mar 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Cell Annotation needed a lightweight contract for coordinating with Heatmap and FlowSOM without hard dependencies, plus reliable provider registration during plugin startup. This updates the shared interfaces and fixes the registration path so providers are discovered even when Cell Annotation is initialized after other plugins.
Shared cross-plugin interfaces
viewer/interfaces.pywith the FlowSOM orchestration method required by Cell Annotation:run_flowsom(selection, params, training_markers, extra_markers, imputation, projection) -> MappingSelectionSpecas the opaque selection handle passed across plugin boundariesProvider registration lifecycle
CellAnnotationPluginregister_loaded_providers(...)to replay provider self-registration against already-instantiated side-plot pluginsmain_vieweraftercell_annotation_pluginis created, fixing the startup ordering gapPlugin-side compatibility hooks
register_heatmap(self)Focused coverage
Example of the new protocol surface:
Original prompt
📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.