Skip to content

bioc/alabaster.sce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Save SingleCellExperiments to file

Environment Status
BioC-release Release OK
BioC-devel Devel OK

The alabaster.sce package implements methods for saving and loading SingleCellExperiment objects under the alabaster framework. It provides a language-agnostic method for serializing reduced dimensions and alternative experiments along with the usual bits and pieces from the SummarizedExperiment parent class. To get started, install the package and its dependencies from Bioconductor:

# install.packages("BiocManager")
BiocManager::install("alabaster.sce")

In the example below, we save a SingleCellExperiment object to file:

library(SingleCellExperiment)
example(SingleCellExperiment, echo=FALSE) # can't be bothered to copy it here.
sce
## class: SingleCellExperiment
## dim: 200 100
## metadata(0):
## assays(2): counts logcounts
## rownames: NULL
## rowData names(0):
## colnames: NULL
## colData names(0):
## reducedDimNames(2): PCA tSNE
## mainExpName: NULL
## altExpNames(0):

library(alabaster.sce)
tmp <- tempfile()
saveObject(sce, tmp)

roundtrip <- readObject(tmp)
class(roundtrip)
## [1] "SingleCellExperiment"
## attr(,"package")
## [1] "SingleCellExperiment"

About

This is a read-only mirror of the git repos at https://bioconductor.org

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages