Data Format Conversion between SingleCellExperiment and loom.
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
andsceasy::convertFormat
.
Examples
if (FALSE) {
# convert from loom to SingleCellExperiment, need users to provide the loom file
sce.obj <- SCELoom(
from = "loom", to = "SingleCellExperiment",
loom.file = "path/to/loom"
)
# convert from SingleCellExperiment to loom, need users to provide the loom file
SCELoom(
from = "SingleCellExperiment", to = "loom", sce = sce.obj,
loom.file = "path/to/loom"
)
}