set_graph: Set graphs

set_graphR Documentation

Set graphs

Description

Set graph objects in any single-cell object class.

Usage

set_graph(obj, g, key, verbose = TRUE)

Arguments

obj

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

g

A graph.

key

Name of the graph key to set g as within obj.

verbose

Print messages.

Value

Named list of graph objects.

Examples

obj <- example_obj("seurat")
g <- get_cor(obj)
obj2 <- set_graph(obj=obj, g=g, key="cor_graph")

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