Skip to content

Error NAs introduced by coercion to integer range when reading large H5AD #301

@LongpanICR

Description

@LongpanICR

Hi,
Thank you for developing this tool to convert the data between anndata and seurat/SingleCellExperiment.
I install the latest package. When I read the h5ad file into the R, I found the adata.X is NULL. I don't know if it's because the matrix is too large (1797611 × 35125), or there are other reasons.
Thank you.
Long

adata <- read_h5ad(file.path(dir_output, "adata_obj_raw.h5ad"))
Warning messages:
1: In Matrix::sparseMatrix(j = indices, p = indptr, x = data, dims = shape, :
NAs introduced by coercion to integer range
2: Error reading element X of type <csr_matrix>
ℹ 'p' must be a nondecreasing vector c(0, ...)
3: In Matrix::sparseMatrix(j = indices, p = indptr, x = data, dims = shape, :
NAs introduced by coercion to integer range
4: Error reading element layers/counts of type <csr_matrix>
ℹ 'p' must be a nondecreasing vector c(0, ...)
adata
AnnData object with n_obs × n_vars = 1797611 × 35125

Metadata

Metadata

Assignees

No one assigned

    Labels

    performanceIssues related to performance and efficiency

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions