Closed GabrielHoffman closed 4 weeks ago
I think you are right and I probably made a mistake last time I updated that function but for completeness can you please post the command you ran with the output/error?
If you are interested in submitting a PR for this that would also be great.
Here is a reproducible error. I'm working on a fix now
library(zellkonverter)
# wget https://datasets.cellxgene.cziscience.com/4e6932db-5a78-40e4-b961-f87f66ba139a.h5ad
file = "4e6932db-5a78-40e4-b961-f87f66ba139a.h5ad"
sce = readH5AD(file, use_hdf5=TRUE, raw=TRUE)
Error in .extract_or_skip_assay(skip_assays = skip_assays, hdf5_backed = hdf5_backed, :
argument "filepath" is missing, with no default
sessionInfo()
sessionInfo()
R version 4.4.0 (2024-04-24)
Platform: aarch64-apple-darwin23.5.0
Running under: macOS Sonoma 14.5
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Users/gabrielhoffman/prog/R-4.4.0/lib/libRlapack.dylib; LAPACK version 3.12.0
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
time zone: America/New_York
tzcode source: internal
attached base packages:
[1] stats graphics grDevices datasets utils methods base
other attached packages:
[1] zellkonverter_1.15.1
loaded via a namespace (and not attached):
[1] Matrix_1.7-0 jsonlite_1.8.8
[3] compiler_4.4.0 crayon_1.5.3
[5] filelock_1.0.3 Rcpp_1.0.12
[7] SummarizedExperiment_1.34.0 Biobase_2.64.0
[9] GenomicRanges_1.56.1 rhdf5filters_1.16.0
[11] parallel_4.4.0 IRanges_2.38.1
[13] png_0.1-8 reticulate_1.38.0
[15] lattice_0.22-6 R6_2.5.1
[17] XVector_0.44.0 S4Arrays_1.4.1
[19] GenomeInfoDb_1.40.1 BiocGenerics_0.50.0
[21] DelayedArray_0.30.1 MatrixGenerics_1.16.0
[23] GenomeInfoDbData_1.2.12 rlang_1.1.4
[25] HDF5Array_1.32.0 dir.expiry_1.12.0
[27] SparseArray_1.4.8 cli_3.6.3
[29] withr_3.0.0 Rhdf5lib_1.26.0
[31] zlibbioc_1.50.0 grid_4.4.0
[33] basilisk_1.16.0 rhdf5_2.48.0
[35] S4Vectors_0.42.1 SingleCellExperiment_1.26.0
[37] abind_1.4-5 stats4_4.4.0
[39] httr_1.4.7 basilisk.utils_1.16.0
[41] matrixStats_1.3.0 tools_4.4.0
[43] UCSC.utils_1.0.0
Confirm pull request? https://github.com/theislab/zellkonverter/pull/124
Thanks. Did you mean to close the PR?
I didn't mean to. I re-opened it now. Let me know if you have another issue
Best, Gabriel
Were you able to resolve this?
Best, Gabriel
Sorry, I haven't had a chance to look at it yet with other things going on. I will try to get to it.
I was worried this would be something specific to more recent anndata versions but I have checked with the different environments and it is consistent so I will review the PR now.
When trying to read the
raw
entry in an h5ad file, this call to.extract_or_skip_assay()
does not specify a value forfilepath
and so throws an errorargument "filepath" is missing, with no default
https://github.com/theislab/zellkonverter/blob/328e7ea895196dbac6229ad3076e9b6ed00b7afe/R/AnnData2SCE.R#L302
It seems like adding
would solve the issue.