set_uns: Set unstructured data

View source: R/set_uns.R

set_unsR Documentation

Set unstructured data

Description

Set the unstructured data slot in any single-cell object that has one.

Usage

set_uns(obj, uns, key, verbose = TRUE)

Arguments

obj

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

uns

Unstructured data to be stored in object.

key

Name of the list element to store uns in.

verbose

Print messages.

Value

Single-cell object.

Examples

obj <- example_obj("ad")
uns <- list("extra_info"=mtcars)
obj2 <- set_uns(obj = obj,
                uns = mtcars,
                key = "extra_info")

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