Entering edit mode
5.4 years ago
Bios
▴
10
Hi,
I'm following this tutorial here: https://satijalab.org/seurat/v3.0/pbmc3k_tutorial.html
I am getting an error when I use CreateSeuratObject. Is there something I should do when I'm loading in the data?
stemcells.data <- load(file = "/Users/Downloads/kowalcyzk_gene_counts")
stemcells <- CreateSeuratObject(raw.data = stemcells.data, min.cells = 3, min.genes = 200, project = "STEM")
Error in base::colSums(x, na.rm = na.rm, dims = dims, ...) :
'x' must be an array of at least two dimensions
Thanks
load
is a function inR
to reload a saved (.Rdata) Dataset. It is not similar asread.table
orread.csv
. If this saved dataset contains the counts, it is under a different name thanstemcell.data
. So check withls()
what you all have loaded into yourR
session, see if you can find a counts object somewhere, or show us whatls()
gives you.I highly doubt that "/Users/kellychau/Downloads/kowalcyzk_gene_counts" is your counts... it looks like a directory.
Output of
head(stemcells.data)
?By the way, I noticed that three of your previous question were deleted after receiving answers. Did you do that? If so, it is bad practice and disrespectful towards the commentators. I reopened all of them. Please stop doing that or we might eventually consider suspending your account. If it was not you then please do not feel offended and simply ignore my comment.