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

Read10X_h5 error #1644

Closed
BSharmi opened this issue Jun 6, 2019 · 3 comments
Closed

Read10X_h5 error #1644

BSharmi opened this issue Jun 6, 2019 · 3 comments

Comments

@BSharmi
Copy link

BSharmi commented Jun 6, 2019

Hi,

I am using hdf5r v 1.2.0 and Seurat v 3.0.1.
I am trying to read the 1M_neurons_filtered_gene_bc_matrices_h5.h5 file (https://support.10xgenomics.com/single-cell-gene-expression/datasets/1.3.0/1M_neurons/aggr - Gene / cell matrix HDF5 (filtered) h5 file) in R using

library(Seurat)
library(hdf5r)
my10X = Read10X_h5('/home/bsharmi6/NA_TF_project/scRNAseq_1million/1M_neurons_filtered_gene_bc_matrices_h5.h5',use.names = TRUE, unique.features = TRUE)

but get the error -

Error in if ((lp <- length(p)) < 1 || p[1] != 0 || any((dp <- p[-1] - :
missing value where TRUE/FALSE needed
In addition: Warning message:
In sparseMatrix(i = indices[] + 1, p = indptr[], x = as.numeric(x = counts[]), :
NAs introduced by coercion to integer range

I was wondering if I need to process the data before I can read it in R?

Thank you

@timoast
Copy link
Collaborator

timoast commented Jun 21, 2019

Hi, this is unfortunately a limitation of the sparse matrix class in R (dgCMatrix), as it cannot store more that 2^32-1 non-zero elements.

@timoast timoast closed this as completed Jun 21, 2019
@paupuigdevall
Copy link

Has anyone find a work around to this problem?

@ShanSabri
Copy link

@timoast @paupuigdevall I'd also like to know if there exists a valid workaround.

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

4 participants