glue_genes.glue_single_cell.qt.summarize_gene_subset.GeneSummaryListener#
- class glue_genes.glue_single_cell.qt.summarize_gene_subset.GeneSummaryListener(genesubset, basename, key, data_with_Xarray=None, comps=[])#
A Listener to keep the new components in target_dataset up-to-date with any changes in the genesubset.
- Parameters:
- genesubsetSubset
The subset over genes to watch
- basenamestr
The subset label
- keystr
The kind of summary performed: [Means, PCA, Module]
- data_with_Xarray
DataAnnData
The expression matrix (X) used to reference the target_dataset
- compslist
A list of the components to keep in sync
- __init__(genesubset, basename, key, data_with_Xarray=None, comps=[])#
Methods
__init__
(genesubset, basename, key[, ...])delete_subset
(message)TODO: Remove the attributes from target_dataset
notify
(message)receive_message
(message)register_to_hub
([hub])set_circular_refs
(data_with_Xarray)unregister
(hub)Default unregistration action.
update_subset
(message)if the subset is the one we care about then we rerun the calculation.