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 April 22, 2024, 12:13 a.m.