Closed CarnoZhao closed 4 years ago
This seems like a reasonable solution - we will implement if it does not affect functionality (@timoast)
This is now available on the develop branch as the keep.sparse
parameter (c25ee5feb9bec7d66653741a93fd1f539ec94e78). Keep in mind that maintaining the matrix as a sparse matrix will be significantly slower than using a dense matrix for this function, which is why we did not write it originally to use a sparse matrix.
Hi, I'm having a hardtime understanding how to use keep.sparse. Would this also be applicable to the merge process? I tried to merge 2 million cells many times. No matter how much MEM I increased (up to 2.5 T), it kept give me the problem too large error.
Could you specify how to use keep.sparse? Is it available in Seurat 4.1.1? Thanks!
Could you specify how to use keep.sparse? Is it available in Seurat 4.1.1? Thanks!
Hi, I'm using
CreateGeneActivityMatrix
with a large ATAC peak matrix (~400000 x 15000). Theas
function that convert the sparse matrix to normal matrix will cause theproblem too large
error.https://github.com/satijalab/seurat/blob/fc4a4f5203227832477a576bfe01bc6efeb23f51/R/preprocessing.R#L231-L251
Maybe we can just keep
peak.matrix
asdgcMatrix
and do the following lines:I'm not sure whether this method is time-consuming or not, but it does save memory and avoid the
problem too large
error.