VariantSubcloneTable.callback_create_figure#
missionbio.mosaic.workflows.variant_subclone_table.VariantSubcloneTable.callback_create_figure
- VariantSubcloneTable.callback_create_figure(selected_cells: List, subclone_data: List, violin_option: str) Figure #
The callback that updates the figure in the interface
- Parameters:
- selected_cellsList
The indices of the cells selected in the subclone table. This is used to identify which plot to show. If a variant is chosen, then the violin plot is shown otherwise the group by genotype summary plot is shown.
- subclone_dataList
The data of the subclone table. This is used to identify the variant corresponding to the selected cell
- violin_optionstr
AF, DP, or GQ - the layer that is to be plotted.
- Returns:
- go.Figure
Either the GroupByGenotype.plot or a violin plot for the given parameters
< Class VariantSubcloneTable