cds_to_anndata: Convert: 'CellDataSet' ==> 'AnnData'

View source: R/cds_to_anndata.R

cds_to_anndataR Documentation

Convert: CellDataSet ==> AnnData

Description

Convert: CellDataSet ==> AnnData

Usage

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

Arguments

obj

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

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).

save_path

Path to save the H5Seurat to.

verbose

Print messages.

Examples

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

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