You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the embedding attribute of a Velocyto object is set to a matrix with many dimensions, and many cells are present, this line in calculate_embedding_shift will try to allocate a huge array and fail with a cryptic MemoryError.
I'd suggest adding a check that the resulting EmbeddingDim, Cells, Cells array fits within a reasonable amount of memory, and printing a warning if it seems too large (i.e. any matrix that would require >32GB of memory could print a "WARNING - Embedding contains N dims and there are M cells, this is a huge matrix that may lead to a memory error").
The text was updated successfully, but these errors were encountered:
If the
embedding
attribute of aVelocyto
object is set to a matrix with many dimensions, and many cells are present, this line incalculate_embedding_shift
will try to allocate a huge array and fail with a crypticMemoryError
.velocyto.py/velocyto/analysis.py
Line 1704 in 0963dd2
I'd suggest adding a check that the resulting
EmbeddingDim, Cells, Cells
array fits within a reasonable amount of memory, and printing a warning if it seems too large (i.e. any matrix that would require>32GB
of memory could print a "WARNING - Embedding contains N dims and there are M cells, this is a huge matrix that may lead to a memory error").The text was updated successfully, but these errors were encountered: