get_x: Get data

View source: R/get_x.R

get_xR Documentation

Get data

Description

Extract expression matrix metadata from any single-cell object.

Usage

get_x(
  obj,
  transpose = TRUE,
  n = NULL,
  assay = NULL,
  slot = NULL,
  as_sparse = FALSE,
  verbose = TRUE
)

Arguments

obj

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

transpose

Transpose the matrix with Matrix::t.

n

The maximum number of elements to return from that list.

assay

Name of the initial assay

slot

Name of component object to return

as_sparse

Convert to a sparseMatrix.

verbose

Print messages.

Value

A named list of matrices.

Examples

obj <- example_obj("seurat")
X <- get_x(obj)

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