Skip to contents

Data Format Conversion between SingleCellExperiment and loom.

Usage

SCELoom(
  from = c("SingleCellExperiment", "loom"),
  to = c("loom", "SingleCellExperiment"),
  sce = NULL,
  loom.file = NULL,
  ...
)

Arguments

from

The source data format to convert, chosen from SingleCellExperiment and AnnData. Default: SingleCellExperiment.

to

The target data format to convert, chosen from AnnData and SingleCellExperiment. Default: loom.

sce

The SingleCellExperiment object to convert. Default: NULL.

loom.file

File used to save or contains loom results. Default: NULL.

...

Parameters for sceasy::convertFormat and sceasy::convertFormat.

Value

NULL or SingleCellExperiment.

Examples

# convert from loom to SingleCellExperiment
# sce.obj = SCELoom(from = "loom", to = "SingleCellExperiment",
#                   loom.file = "path/to/loom")
# convert from SingleCellExperiment to loom
# SCELoom(from = "SingleCellExperiment", to = "loom",sce = sce.obj,
#         loom.file = "path/to/loom")