Transfer Labels#

This subpackage contains functions to transfer labels (from an already labeled adata to an unlabeled adata).

Using an sklearn classifier#

This module handles label transfer via sklearn models.

transfer_labels_using_classifier(...[, ...])

Transfers labels from origin_adata to destination_adata using a classifier of type classifier_class.

train_label_classifier(adata, label_key, ...)

Trains a classifier on the given adata; used internally by transfer_labels_using_classifier().

Based on harmony integration#

Label transfer via harmony integration.

harmony_label_transfer(origin_adata, ...)

Perform Harmony integration and transfer labels from origin_adata to destination_adata.