Skip to content

Commit

Permalink
remove note, this is not so much a workaround as it is hdf5r not supp…
Browse files Browse the repository at this point in the history
…orting any of the data types from the Matrix package.
  • Loading branch information
rcannood committed Jan 23, 2025
1 parent c39d0ba commit 9248c1a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/write_h5ad_helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,7 @@ write_h5ad_encoding <- function(file, name, encoding, version) {
write_h5ad_dense_array <- function(value, file, name, compression, version = "0.2.0") {
version <- match.arg(version)

# workaround for scverse/anndataR#198
# matrices of type 'dgeMatrix' are perhaps not supported by hdf5r
# matrices of type 'dgeMatrix' can simply be converted to a matrix
if (inherits(value, "denseMatrix")) {
value <- as.matrix(value)
}
Expand Down

0 comments on commit 9248c1a

Please sign in to comment.