set_var: Set unstructured data

View source: R/set_var.R

set_varR Documentation

Set unstructured data

Description

Set the feature variable slot (i.e. gene metadata) in any single-cell object that has one.

Usage

set_var(obj, var, verbose = TRUE)

Arguments

obj

A single-cell object supported by scKirby. See converters for a table of all supported conversions.

var

Variable metadata as a data.frame with features as row names.

verbose

Print messages.

Value

Single-cell object.

Examples

obj <- example_obj("seurat")
var <- get_var(obj)
var$new_col <- c(1,2)
obj2 <- set_var(obj = obj,
                var = var)

bschilder/scKirby documentation built on Oct. 2, 2024, 10:16 p.m.