glue_genes.glue_single_cell.qt.diff_gene_exp.DifferentialGeneExpressionListener#

class glue_genes.glue_single_cell.qt.diff_gene_exp.DifferentialGeneExpressionListener(subset1, subset2, data_with_Xarray=None, comps=[], show_dialog=True)#

A Listener that updates the differential gene expression SynComponent(s) when the underlying subsets are changed.

Parameters:
data_with_XarrayDataAnnData

The data object containing the var_data component to be updated

subset1Subset

The subset that is the numerator in the differential gene expression

subset2Subset

The subset that is the denominator in the differential gene expression

compslist of ComponentID

The components to be kept up-to-date.

show_dialogbool, optional

Whether to show a warning dialog if the subset is not valid. Default is True.

__init__(subset1, subset2, data_with_Xarray=None, comps=[], show_dialog=True)#

Methods

__init__(subset1, subset2[, ...])

delete_subset(message)

Remove the sync components if we delete either subset and unregister the listener from the hub

notify(message)

receive_message(message)

register_to_hub([hub])

set_circular_refs(data_with_Xarray)

unregister(hub)

Default unregistration action.

update_comp_labels()

Update the labels of the components to reflect the subsets and sync state.

update_subset(message)

Update components the subsets we listen for are updated.