VariantSubcloneTable.callback_variants_table_modifications

VariantSubcloneTable.callback_variants_table_modifications#

missionbio.mosaic.workflows.variant_subclone_table.VariantSubcloneTable.callback_variants_table_modifications

VariantSubcloneTable.callback_variants_table_modifications(sort_by: List[Dict], filter_query: str) Tuple[List[Dict], ndarray]#

Custom sorting and filtering for the variants subclone table

Parameters:
sort_byList[Dict]

Describes the current state of the sorting UI. That is, if the user clicked on the sort arrow of a column, then this property will be updated with the column ID and the direction (asc or desc) of the sort. For multi-column sorting, this will be a list of sorting parameters, in the order in which they were clicked.

filter_querystr

Describes the filtering operations that need to be performed on the variant subclone table. The description of the string format is available in the Dash documentation https://dash.plotly.com/datatable/filtering

Returns:
List[dict]:

The data of the variants subclone table

np.ndarray:

The indices of the rows selected in the variants table


< Class VariantSubcloneTable