Skip to content

Commit

Permalink
Fix sce object conversion; #6692
Browse files Browse the repository at this point in the history
  • Loading branch information
timoast committed Dec 7, 2022
1 parent a4baab7 commit 723b066
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/objects.R
Original file line number Diff line number Diff line change
Expand Up @@ -1138,6 +1138,8 @@ as.Seurat.SingleCellExperiment <- function(
embeddings <- as.matrix(x = SingleCellExperiment::reducedDim(x = x, type = dr))
if (is.null(x = rownames(x = embeddings))) {
rownames(x = embeddings) <- cell.names
} else {
rownames(x = embeddings) <- make.unique(names = rownames(x = embeddings))
}
if (isTRUE(x = !grepl('_$',
gsub(pattern = "[[:digit:]]",
Expand Down

0 comments on commit 723b066

Please sign in to comment.