Closed kvshams closed 4 years ago
This has been mentioned here: https://github.com/satijalab/seurat/issues/1029#issuecomment-534856129, will look into it.
How about
qq<-unname(at_GG$Bay_out)
rm(at_GG)
x.seurat <- CreateSeuratObject(counts =qq,assay =
'bayNorm')
Or save at_GG$Bay_out
as HDF5Matrix
object. Then Read10X_h5
(still, not sure about this).
Another relevant discussion: https://github.com/cole-trapnell-lab/monocle-release/issues/138#issuecomment-452572783.
A final resort could be using scanpy
in python
, which is similar to Seurat
in R
.
Basically, as far as I think, there are following ways:
Seurat
. By doing so, we make sure that there is only one big data loaded in the environment (exclude the raw data).scanpy
in python
.spam
package in R
... still look into it https://stackoverflow.com/questions/24236426/how-to-get-a-big-sparse-matrix-in-r-231-1 .I agree that it would work in other packages such as scnapy
. Even it works very well with bigmemory
(verified) in R but unfortunately the Seurat
is still at dgCMatrix
based data structure. Thanks a lot for working on it. As we have reached now on a dead end, I am closing this issue
@WT215 sorry to bug you again. How easy to return Arcsine
normalized dgcMatrix
as an output. That would solve the memory issue as it keep the zero value as zero.
@WT215 sorry to bug you again. How easy to return
Arcsine
normalizeddgcMatrix
as an output. That would solve the memory issue as it keep the zero value as zero.
Thanks for the suggestion! This idea sounds interesting. However the normalized data is no longer sparse, and the R itself cannot handle big matrix. So I am not very sure whether that idea works, but I will have a look.
Thanks for the cool tool!.
Is there any work around on the Seurat object? Thanks, Shams