Skip to content

Commit

Permalink
Merge pull request satijalab#644 from satijalab/fix/SpatialPlot_groupby
Browse files Browse the repository at this point in the history
SpatialPlot group.by fix
  • Loading branch information
AustinHartman authored Aug 24, 2022
2 parents 0cd02cf + 0fe083f commit 148c78f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: Seurat
Version: 4.1.1.9002
Date: 2022-05-20
Version: 4.1.1.9003
Date: 2022-07-22
Title: Tools for Single Cell Genomics
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.
Authors@R: c(
Expand Down
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Changes
- Fix legend color in `DoHeatmap()` ([#5783](https://github.com/satijalab/seurat/issues/5783))
- Fix bug in `ScaleData()` when regressing out one gene ([#5970](https://github.com/satijalab/seurat/pull/5970))
- Fix bug in `SpatialDimPlot()` when using `group.by` ([#6179](https://github.com/satijalab/seurat/issues/6179))
- Add `add.noise` parameter in `VlnPlot()`
([#5756](https://github.com/satijalab/seurat/issues/5756))

Expand Down
2 changes: 1 addition & 1 deletion R/visualization.R
Original file line number Diff line number Diff line change
Expand Up @@ -7698,7 +7698,7 @@ SingleSpatialPlot <- function(
colors <- DiscretePalette(length(unique(data[[col.by]])), palette = cols)
scale <- scale_fill_manual(values = colors, na.value = na.value)
} else {
cols <- cols[names(x = cols) %in% data$ident]
cols <- cols[names(x = cols) %in% data[[gsub(pattern = '`', replacement = "", x = col.by)]]]
scale <- scale_fill_manual(values = cols, na.value = na.value)
}
plot <- plot + scale
Expand Down

0 comments on commit 148c78f

Please sign in to comment.