Skip to contents

Transfers cell-type annotations from a re-annotated subset of a Seurat object back to the full Seurat object. This is useful when clusters have been refined or re-labeled in a subset and need to be reflected in the original object.

Usage

DO.TransferLabel(Seu_obj, Subset_obj, annotation_column, subset_annotation)

Arguments

Subset_obj

subsetted Seurat object with re-annotated clusters

annotation_column

column name in meta.data with annotation

subset_annotation

column name in meta.data with annotation in the subsetted object

Seu_object

Seurat object with annotation in meta.data

Value

Seurat Object with transfered labels

Examples

if (FALSE) { # \dontrun{

Seu_obj <- DO.TransferLabel(Seu_obj,
                            Subset_obj,
                            annotation_column="annotation",
                            subset_annotation="annotation"
                           )
} # }