Thanks for your response.
It works well until this point.
x <- Matrix(as.matrix(micedata), sparse = TRUE)
but can you tell me the below code: When I execute the below code its shows the following errors.
message('--writing 10x output to: file_location ', paste0('mystudy/', gsmid))
write10xCounts(
path = paste0('mystudy/', gsmid),
x = x,
overwrite = FALSE)
message('--done')
Error in paste0("mystudy/", gsmid) : object 'gsmid' not found
what is gsmid? I loaded "require(DropletUtils)"
Alternatively I also tried to write .mtx file via following:
writeMM(obj = x, file="matrix.mtx")
After completion i have 1.4 GB of matrix.mtx file.
Then try to load the data using:
mice <- Read10X(data.dir = "file_location", gene.column = 1)
Thank you
You actually don't have to convert. Seurat will take any matrix.
Read10Xis a helper function if you are starting with 10x data. Otherwise, just skip to theCreateSeuratObjectfunction.Great point, Igor.