Last active
April 18, 2019 15:43
-
-
Save diazdc/1857e7d6d4bd160f7f0aa692330dfd45 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# 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