VariantSubcloneTable.sort_variants_table

VariantSubcloneTable.sort_variants_table#

missionbio.mosaic.workflows.variant_subclone_table.VariantSubcloneTable.sort_variants_table

VariantSubcloneTable.sort_variants_table(sort_by: List[Dict]) None#

Custom sorting algorithm for the variants subclone table

This function modifies the variant_df attribute of the class. It sorts that dataframe as per the given input.

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.

Returns:
List[dict]:

The data of the variants subclone table


< Class VariantSubcloneTable