Skip to content

Instantly share code, notes, and snippets.

@diazdc
Last active April 18, 2019 15:43
Show Gist options
  • Save diazdc/1857e7d6d4bd160f7f0aa692330dfd45 to your computer and use it in GitHub Desktop.
Save diazdc/1857e7d6d4bd160f7f0aa692330dfd45 to your computer and use it in GitHub Desktop.
# Get size of each slot in Seurat object
objectSize <- function(seurat_obj) {
slots <- slotNames(seurat_obj)
for (i in 1:length(slots)) {
print(paste0(slots[i], " - ", class(slot(seurat_obj, slots[i]))))
print(object.size(slot(seurat_obj, slots[i])), units = "auto")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment