
Read an anndata matrix group / dataset (X, raw/X, layers, obsm) as an R matrix
Source:R/quasar_importer_exporter.R
quasar_h5_read_matrix.RdSparse CSR/CSC groups become a Matrix sparse matrix; dense datasets a base matrix. Orientation matches the R single-cell convention (features x observations for X). A dataframe stored where a matrix is expected is read and coerced to a numeric matrix.