Skip to content

Commit

Permalink
Update R/utilities.R
Browse files Browse the repository at this point in the history
Correction to use AddMetaData function

Co-authored-by: David Collins <[email protected]>
  • Loading branch information
joesphbeller and dcollins15 committed Feb 7, 2025
1 parent 2425106 commit 9cf5791
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/utilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -986,8 +986,7 @@ GroupCorrelation <- function(
grp.cors <- as.data.frame(x = grp.cors[which(x = !is.na(x = grp.cors))])
grp.cors$gene_grp <- gene.grp[rownames(x = grp.cors)]
colnames(x = grp.cors) <- c(paste0(var, "_cor"), "feature.grp")
try(object[[assay]]@meta.data <- grp.cors, silent = T)
try(object[[assay]]@meta.features <- grp.cors, silent = T)
object[[assay]] <- AddMetaData(object[[assay]], grp.cors)
if (isTRUE(x = do.plot)) {
print(GroupCorrelationPlot(
object = object,
Expand Down

0 comments on commit 9cf5791

Please sign in to comment.