to_delayedarray: Convert: to 'DelayedArray'

View source: R/to_delayedarray.R

to_delayedarrayR Documentation

Convert: to DelayedArray

Description

Convert any object to DelayedArray format.

Usage

to_delayedarray(obj, as_sparse = TRUE, verbose = TRUE, ...)

Arguments

obj

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

as_sparse

Convert to a sparseMatrix.

verbose

Print messages.

...

Arguments passed on to get_x

n

The maximum number of elements to return from that list.

transpose

Transpose the matrix with Matrix::t.

assay

Name of the initial assay

slot

Name of component object to return

Value

A DelayedArray.

Examples

obj <- data.frame(gene=paste0("gene",seq_len(10)),
                  matrix(data = 0,nrow=10,ncol = 20))
obj2 <- to_delayedarray(obj)

bschilder/scKirby documentation built on April 22, 2024, 12:13 a.m.