You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am looking at a large hdf5 file and trying to extract a matrix convert it to a sparse matrix. The source file and code below. It works for smaller slices (i.e [1:5, 1:5]) but when I try to load the whole thing I get an args_regularity_evaluation error
library(hdf5r)
library(Matrix)
fn="expression_matrix.hdf5"if(!file.exists(fn)){
site="https://idk-etl-prod-download-bucket.s3.amazonaws.com"dataset="aibs_mouse_ctx-hpf_10x"# print(paste(site, dataset, i, sep="/"))
system2("wget", args=paste(site, dataset, fn, sep="/"))
} else { print(paste(fn, "exists, skipping")) }
a=H5File$new(fn, mode="r")
a[['data']]
# b = Matrix(a[['data/counts']][1:5, 1:5], # dimnames=list(a[['data/samples']][1:5], a[['data/gene']][1:5]))b= Matrix(a[['data/counts']][],
dimnames=list(a[['data/samples']][], a[['data/gene']][]))
# Error in args_regularity_evaluation(args = args, ds_dims = simple_extent$dims, :# Number of arguments not equal to number of dimensions: 1 vs. 2
Hello, I am looking at a large hdf5 file and trying to extract a matrix convert it to a sparse matrix. The source file and code below. It works for smaller slices (i.e [1:5, 1:5]) but when I try to load the whole thing I get an args_regularity_evaluation error
hdf5 file info
The text was updated successfully, but these errors were encountered: