Skip to content

Commit

Permalink
Merge pull request #323 from ycl6/fix_se_ident
Browse files Browse the repository at this point in the history
Fix 'ident' field name of sc object in '.grabMeta()'
  • Loading branch information
ncborcherding authored Feb 28, 2024
2 parents 6a919b9 + 097a999 commit 9f4a659
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ is_seurat_or_se_object <- function(obj) {
} else if (is_se_object(sc)){
meta <- data.frame(colData(sc))
rownames(meta) <- sc@colData@rownames
clu <- which(colnames(meta) == "ident")
clu <- which(colnames(meta) == "label") # as set by colLabels()
colnames(meta)[clu] <- "ident"
} else {
stop("Object indicated is not of class 'Seurat' or
Expand Down

0 comments on commit 9f4a659

Please sign in to comment.