Skip to content

Commit

Permalink
Changing subset technique to work for Seurat V5 for GroupCorrelationP…
Browse files Browse the repository at this point in the history
…lot() as discussed in issue #9483
  • Loading branch information
joesphbeller authored and dcollins15 committed Feb 7, 2025
1 parent 0497b0e commit 2425106
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/visualization.R
Original file line number Diff line number Diff line change
Expand Up @@ -4700,7 +4700,8 @@ GroupCorrelationPlot <- function(
cor = "nCount_RNA_cor"
) {
assay <- assay %||% DefaultAssay(object = object)
data <- object[[assay]][c(feature.group, cor)]
try(data <- object[[assay]]@meta.data[, c(feature.group, cor)], silent=T)
try(data <- object[[assay]]@meta.features[, c(feature.group, cor)], silent=T)
data <- data[complete.cases(data), ]
colnames(x = data) <- c('grp', 'cor')
data$grp <- as.character(data$grp)
Expand Down

0 comments on commit 2425106

Please sign in to comment.