diff --git a/NEWS.md b/NEWS.md index 3acde75..309a313 100644 --- a/NEWS.md +++ b/NEWS.md @@ -2,6 +2,8 @@ * BUG FIX: Use the right interface for the `all.equal()` function. +* BUG FIX: Add `py_to_r` converter for `anndata.abc._AbstractCSDataset` (PR #xxx). + # anndata 0.7.5.5 * FUNCTIONALITY: Added initial support for loading AnnData with `backed=TRUE`. diff --git a/R/reticulate_conversions.R b/R/reticulate_conversions.R index 145d96c..a1a2480 100644 --- a/R/reticulate_conversions.R +++ b/R/reticulate_conversions.R @@ -100,6 +100,10 @@ py_to_r.scipy.sparse.csc.csc_matrix <- function(x) { ) } +py_to_r.anndata.abc._AbstractCSDataset <- function(x) { + py_to_r_ifneedbe(x$to_memory()) +} + # TODO: could add mapping specifically for: # * adpy$layers: anndata._core.aligned_mapping.Layers # * adpy$obsm: anndata._core.aligned_mapping.AxisArrays