export-methods {LoomExperiment} | R Documentation |
Exports a LoomExperiment
to a LoomFile
. Note the colGraph
and rowGraph
contained within
the LoomExperimnet
object are 1-indexed in R
and are converted to 0-indexed in the loom file.
## S4 method for signature 'LoomExperiment,LoomFile,ANY' export(object, con, matrix=assayNames(object)[1], rownames_attr="rownames", colnames_attr="colnames")
object |
A |
con |
The connection from which data is loaded or to which data is saved. If this is a |
matrix |
A |
rownames_attr |
A |
colnames_attr |
A |
An error code indiciating whether the operation was successful.
counts <- matrix(rpois(100, lambda = 10), ncol=10, nrow=10) sce <- SingleCellExperiment(assays = list(counts = counts)) scle <- SingleCellLoomExperiment(sce) tempfile <- tempfile(fileext=".loom") export(scle, tempfile)