yomix.tools.signatures¶
This module provides tools for managing and interacting with gene signatures in visualizations.
Functions¶
- signature_buttons(adata, offset_text_feature_color, offset_label, hidden_checkbox_A, hidden_checkbox_B)¶
Designed to create and manage an interactive visualization tool for computing and displaying “signatures” based on the statistical differences between two or more subsets of a dataset. here we calaculate the signature subset A vs subset B or subset A vs rest. It gives us 20 sigantures.
- Parameters:
adata (AnnData) – The AnnData object containing single-cell data.
offset_text_feature_color (bokeh.models.Div) – Offset for text feature colors in the visualization.
offset_label (bokeh.models.Div) – Offset for label positioning in the visualization.
hidden_checkbox_A (Bokeh.models.widgets.CheckboxGroup) – A Bokeh checkbox group widget that tracks which cells belong to “Subset A”
hidden_checkbox_B (Bokeh.models.widgets.CheckboxGroup) – A Bokeh checkbox group widget that tracks which cells belong to “Subset B”.
- Returns:
A tuple containing 8 elements: Bokeh model objects and a list (for tracking the signature number).
- Return type:
The function returns a tuple of the above Bokeh.