Skip to content

Commit

Permalink
Add py_to_r converter for anndata.abc._AbstractCSDataset
Browse files Browse the repository at this point in the history
  • Loading branch information
rcannood committed Nov 15, 2024
1 parent a62ec8a commit 9c6e4e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
4 changes: 4 additions & 0 deletions R/reticulate_conversions.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9c6e4e1

Please sign in to comment.