se_to_anndata: Convert: 'SummarizedExperiment' ==> 'AnnData'

View source: R/se_to_anndata.R

se_to_anndataR Documentation

Convert: SummarizedExperiment ==> AnnData

Description

Convert: SummarizedExperiment ==> AnnData

Usage

se_to_anndata(
  obj,
  method = c("zellkonverter", "sceasy"),
  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.

method

Which R package to use for the conversion.

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.

...

Additional arguments passed to the respective converter function.

Value

AnnData object.

Examples

obj <- example_obj("se")
obj2 <- se_to_anndata(obj)

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