Skip to contents

This function sets feature metadata in a Seurat object, handling both V4 and V5 formats.

Usage

set_feature_metadata(srt, metadata, assay = NULL)

Arguments

srt

A Seurat object

metadata

A data frame of feature metadata

assay

Name of the assay. If NULL, uses the default assay.

Value

The modified Seurat object