Closed GabrielHoffman closed 10 months ago
Hi,
It looks like some of your packages are out-of-sync (e.g. DelayedArray 0.28.0 belongs to BioC 3.18 but HDF5Array 1.28.1 belongs to BioC 3.17). Please run BiocManager::valid()
and make sure to fix all the reported problems.
Then restart R, load HDF5Array, and check the output of selectMethod("OLD_extract_sparse_array", "CSR_H5SparseMatrixSeed")
. Here's what you should see:
library(HDF5Array)
selectMethod("OLD_extract_sparse_array", "CSR_H5SparseMatrixSeed")
# Method Definition:
#
# function (x, index)
# {
# sas <- .load_sparse_data(x, index)
# OLD_extract_sparse_array(sas, index)
# }
# <bytecode: 0x563fb74a2760>
# <environment: namespace:HDF5Array>
#
# Signatures:
# x
# target "CSR_H5SparseMatrixSeed"
Best, H.
sessionInfo():
> sessionInfo()
R version 4.3.0 (2023-04-21)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 23.10
Matrix products: default
BLAS: /home/hpages/R/R-4.3.0/lib/libRblas.so
LAPACK: /home/hpages/R/R-4.3.0/lib/libRlapack.so; LAPACK version 3.11.0
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
time zone: America/Los_Angeles
tzcode source: system (glibc)
attached base packages:
[1] stats4 stats graphics grDevices utils datasets methods
[8] base
other attached packages:
[1] HDF5Array_1.30.0 rhdf5_2.46.0 DelayedArray_0.28.0
[4] SparseArray_1.2.0 S4Arrays_1.2.0 abind_1.4-5
[7] IRanges_2.36.0 S4Vectors_0.40.1 MatrixGenerics_1.14.0
[10] matrixStats_1.0.0 BiocGenerics_0.48.1 Matrix_1.6-1.1
loaded via a namespace (and not attached):
[1] zlibbioc_1.48.0 lattice_0.22-5 rhdf5filters_1.14.0
[4] XVector_0.42.0 Rhdf5lib_1.24.0 grid_4.3.0
[7] compiler_4.3.0 tools_4.3.0 crayon_1.5.2
That fixed the issue, thanks!
Thanks for the package.
I have an error that I encountered for the first time today. The real code I am interested is more complicated, but here is a minimal reproducible example that 1) reads an h5ad from disk using
zellkonverter
withDelayedArray
to use on-disk memory, and 2) computes the row sums.With the new set of Bioconductor packages, the code fails (see session info below). But with a previous set of packages (see further below) it succeeds. None of this is a problem when
use_hdf5=FALSE
.Code:
Session Info for failure:
Session Info for success: