to_anndata: To 'AnnData'

View source: R/to_anndata.R

to_anndataR Documentation

To AnnData

Description

Convert any single-cell object to AnnData format.

Usage

to_anndata(
  obj,
  save_path = tempfile(fileext = ".h5ad"),
  reimport = FALSE,
  verbose = TRUE
)

Arguments

obj

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

save_path

Path to save the H5Seurat to.

reimport

Save and re-import the AnnData object into R to ensure all data has been converted from Python-native to R-native objects (e.g. pandas data.frames vs. R data.frames).

verbose

Print messages.

Examples

obj <- example_obj("cds")
obj2 <- to_anndata(obj)

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