export-methods | 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.
LoomExperiment
,
LoomFile
,
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.