Skip to content

Commit 9755c16

Browse files
authored
Merge pull request #9625 from joesphbeller/master
Fix GroupCorrelation and GroupCorrelationPlot for Seurat V5 compatibility
2 parents 1549c8d + e99bf99 commit 9755c16

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: Seurat
2-
Version: 5.2.99.9000
2+
Version: 5.2.99.9001
33
Title: Tools for Single Cell Genomics
44
Description: A toolkit for quality control, analysis, and exploration of single cell RNA sequencing data. 'Seurat' aims to enable users to identify and interpret sources of heterogeneity from single cell transcriptomic measurements, and to integrate diverse types of single cell data. See Satija R, Farrell J, Gennert D, et al (2015) <doi:10.1038/nbt.3192>, Macosko E, Basu A, Satija R, et al (2015) <doi:10.1016/j.cell.2015.05.002>, Stuart T, Butler A, et al (2019) <doi:10.1016/j.cell.2019.05.031>, and Hao, Hao, et al (2020) <doi:10.1101/2020.10.12.335331> for more details.
55
Authors@R: c(

NEWS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Unreleased
2+
3+
## Changes
4+
- Fixed `GroupCorrelation` and `GroupCorrelationPlot` to be compatible with `SeuratObject` >= 5.0.0 ([#9625](https://github.com/satijalab/seurat/pull/9625))
5+
16
# Seurat 5.2.1 (2025-01-23)
27

38
## Changes

R/utilities.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,7 @@ GroupCorrelation <- function(
986986
grp.cors <- as.data.frame(x = grp.cors[which(x = !is.na(x = grp.cors))])
987987
grp.cors$gene_grp <- gene.grp[rownames(x = grp.cors)]
988988
colnames(x = grp.cors) <- c(paste0(var, "_cor"), "feature.grp")
989-
object[[assay]][] <- grp.cors
989+
object[[assay]] <- AddMetaData(object[[assay]], grp.cors)
990990
if (isTRUE(x = do.plot)) {
991991
print(GroupCorrelationPlot(
992992
object = object,

R/visualization.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4700,7 +4700,7 @@ GroupCorrelationPlot <- function(
47004700
cor = "nCount_RNA_cor"
47014701
) {
47024702
assay <- assay %||% DefaultAssay(object = object)
4703-
data <- object[[assay]][c(feature.group, cor)]
4703+
data <- object[[assay]][[c(feature.group, cor)]]
47044704
data <- data[complete.cases(data), ]
47054705
colnames(x = data) <- c('grp', 'cor')
47064706
data$grp <- as.character(data$grp)

0 commit comments

Comments
 (0)