tomodrgn.analysis.combine_ind#

combine_ind(selections_list: list[ndarray], n_ind_total: int, kind: Literal['intersection', 'union'] = 'union') tuple[ndarray, ndarray][source]#

Combine multiple indices selections by either intersection or union.

Parameters:
  • selections_list – list of arrays of indices to combine

  • n_ind_total – number of total indices (both selected and not selected)

  • kind – type of combination selection to perform, one of ‘intersection’, ‘union’

Returns:

array of combined and sorted selected indices, array of sorted unselected indices