Skip to content

Commit

Permalink
Add: support for ndarray and DataFrame anndata
Browse files Browse the repository at this point in the history
  • Loading branch information
wwang-chcn committed Aug 4, 2024
1 parent e622a46 commit f49c752
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/interoperability.R
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ anndataToGiotto <- function(
X <- extract_expression(adata)
cID <- extract_cell_IDs(adata)
fID <- extract_feat_IDs(adata)
X <- methods::as(as.matrix(X), "sparseMatrix")
X@Dimnames[[1]] <- fID
X@Dimnames[[2]] <- cID
# Expression matrix X ready
Expand Down

0 comments on commit f49c752

Please sign in to comment.