Created
June 15, 2021 12:16
-
-
Save lwaldron/c365ce39afc03ec708b4847e0e7d3b34 to your computer and use it in GitHub Desktop.
Object serialization and sizes of SingleCellMultiModal::scMultiome dataset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(SingleCellMultiModal) | |
library(MultiAssayExperiment) | |
suppressMessages(scmm <- scMultiome(dry.run = FALSE)) | |
format(object.size(scmm), units="Mb") #31Mb in memory | |
saveHDF5MultiAssayExperiment(scmm) | |
dir("h5_mae", full.names=TRUE) |> file.info() # ~193MB on disk | |
suppressMessages(scmm_sparse <- scMultiome(format = "MTX", dry.run = FALSE)) | |
format(object.size(scmm_sparse), units="Mb") #1078Mb in memory | |
save(scmm_sparse, file = "scmm_sparse.rda") | |
file.info("scmm_sparse.rda") #1062Mb on disk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment