#can be read in python import h5py import numpy as np from scipy.sparse import csr_matrix # Open the HDF5 file in read mode file = h5py.File(file.ou.CRE.hdf5, 'r') # Access the datasets and read the data data = file['data'][:] indices = file['column_indices'][:] indptr = file['row_pointers'][:] shape = tuple(file['shape'][:]) # Build the sparse matrix using CSR format sparse_matrix = csr_matrix((data, indices, indptr), shape=shape) # Close the file file.close()