Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in opening anndata in R. #2373 #2374

Closed
KalkiKukreja opened this issue Nov 30, 2019 · 3 comments
Closed

Error in opening anndata in R. #2373 #2374

KalkiKukreja opened this issue Nov 30, 2019 · 3 comments

Comments

@KalkiKukreja
Copy link

I use scanpy for scRNA seq analysis and wanted to try some functions written in R. So, I was trying to open anndata object using ReadH5AD and I got this error:

Error in sparseMatrix(i = x[["indices"]][] + 1, p = x[["indptr"]][], x = x[["data"]][], :
all(dims >= dims.min) is not TRUE

The anndata object I am trying to open doesn't even have a Sparse matrix (it is scaled) so I am not able to comprehend what this error means.

@dylkot
Copy link

dylkot commented Dec 11, 2019

I have the same problem. I tested this out with a minimal AnnData object consisting of just obs, var, and X (in sparse csc_matrix format) attributes. It is 58126 cells x18266 genes and I filtered out any genes detected in <5 cells and any cells with fewer than 200 genes detected. I am using Seurat_3.1.1

@satijalab
Copy link
Collaborator

See #2485. We are looking into this- so please feel free to post any example files that are not loading so that we can debug

@mukund109
Copy link

I have the same problem. I tested this out with a minimal AnnData object consisting of just obs, var, and X (in sparse csc_matrix format) attributes. It is 58126 cells x18266 genes and I filtered out any genes detected in <5 cells and any cells with fewer than 200 genes detected. I am using Seurat_3.1.1

I had the same issue, fixed it by saving it in sparse row format scipy.sparse.csr_matrix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants