Skip to content

Commit

Permalink
Merge pull request satijalab#591 from satijalab/fix/VariablePlot_disp…
Browse files Browse the repository at this point in the history
…ersion

swab dispersion.scaled to dispersion
  • Loading branch information
andrewwbutler authored Aug 9, 2021
2 parents 60b977c + 1976c22 commit acadb5d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 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.0.3.9014
Date: 2021-08-06
Version: 4.0.3.9015
Date: 2021-08-09
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 @@ -17,6 +17,7 @@
- Bug fix in `DoHeatmap()` to remove random characters from plot legend([#4660](https://github.com/satijalab/seurat/issues/4660))
- Fix cell renaming in `RunCCA()`
- Fix issue in SingleCellExperiment conversion where the mainExp would not be set properly
- Fix for default dispersion info displayed in `VariableFeaturePlot()`

## Seurat 4.0.3 (2020-06-10)`
## Added
Expand Down
8 changes: 6 additions & 2 deletions R/visualization.R
Original file line number Diff line number Diff line change
Expand Up @@ -2003,11 +2003,15 @@ VariableFeaturePlot <- function(
status = TRUE
)
var.status <- c('no', 'yes')[unlist(x = hvf.info[, ncol(x = hvf.info)]) + 1]
hvf.info <- hvf.info[, c(1, 3)]
if (colnames(x = hvf.info)[3] == 'dispersion.scaled') {
hvf.info <- hvf.info[, c(1, 2)]
} else {
hvf.info <- hvf.info[, c(1, 3)]
}
axis.labels <- switch(
EXPR = colnames(x = hvf.info)[2],
'variance.standardized' = c('Average Expression', 'Standardized Variance'),
'dispersion.scaled' = c('Average Expression', 'Dispersion'),
'dispersion' = c('Average Expression', 'Dispersion'),
'residual_variance' = c('Geometric Mean of Expression', 'Residual Variance')
)
log <- log %||% (any(c('variance.standardized', 'residual_variance') %in% colnames(x = hvf.info)))
Expand Down

0 comments on commit acadb5d

Please sign in to comment.