scib_rapids.isolated_labels

scib_rapids.isolated_labels#

scib_rapids.isolated_labels(X, labels, batch, rescale=True, iso_threshold=None)[source]#

Isolated label score.

Parameters:
  • X (ndarray) – Array of shape (n_cells, n_features).

  • labels (ndarray) – Array of shape (n_cells,) representing label values.

  • batch (ndarray) – Array of shape (n_cells,) representing batch values.

  • rescale (bool (default: True)) – Scale asw into the range [0, 1].

  • iso_threshold (int | None (default: None)) – Max number of batches per label for label to be considered as isolated.

Return type:

float

Returns:

isolated_label_score