Skip to content

Commit

Permalink
Update AnnData2SCE.R
Browse files Browse the repository at this point in the history
Fix #123
  • Loading branch information
GabrielHoffman authored Aug 27, 2024
1 parent 328e7ea commit 22ef497
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/AnnData2SCE.R
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ AnnData2SCE <- function(adata, X_name = NULL, layers = TRUE, uns = TRUE,
# do not apply py_to_r yet, because this is taken care of by
# .extract_or_skip_assay(...)!
mat = adata$layers$get(layer_name),
filepath = as.character(py_to_r(adata$file$filename)),
name = sprintf("'%s' layer matrix", layer_name)
)
if (layer_out$skipped) {
Expand Down Expand Up @@ -306,6 +307,7 @@ AnnData2SCE <- function(adata, X_name = NULL, layers = TRUE, uns = TRUE,
# do not apply py_to_r yet, because this is taken care of by
# .extract_or_skip_assay(...)!
mat = adata$raw$X,
filepath = as.character(py_to_r(adata$file$filename)),
name = "raw 'X' matrix"
)
colnames(raw_x$mat) <- colnames(output)
Expand Down

0 comments on commit 22ef497

Please sign in to comment.