Skip to content

Commit 94343c4

Browse files
author
satijalab
authored
Merge pull request #2648 from satijalab/develop
Seurat v3.1.4
2 parents 87e2454 + dc0bd16 commit 94343c4

22 files changed

+245
-202
lines changed

DESCRIPTION

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: Seurat
2-
Version: 3.1.3
3-
Date: 2020-02-07
2+
Version: 3.1.4
3+
Date: 2020-02-26
44
Title: Tools for Single Cell Genomics
5-
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>, and Butler A and Satija R (2017) <doi:10.1101/164889> for more details.
5+
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>, and Butler A and Satija R (2017) <doi:10.1101/164889> for more details. Please note: SDMTools is available is available from the CRAN archives with install.packages("https://cran.rstudio.com//src/contrib/Archive/SDMTools/SDMTools_1.1-221.2.tar.gz", repos = NULL); it is not in the standard repositories.
66
Authors@R: c(
77
person(given = 'Rahul', family = 'Satija', email = 'rsatija@nygenome.org', role = 'aut', comment = c(ORCID = '0000-0001-9448-8833')),
88
person(given = 'Andrew', family = 'Butler', email = 'abutler@nygenome.org', role = 'aut', comment = c(ORCID = '0000-0003-3608-0463')),
@@ -43,6 +43,7 @@ Imports:
4343
MASS,
4444
Matrix (>= 1.2-14),
4545
metap,
46+
patchwork,
4647
pbapply,
4748
plotly,
4849
png,

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,7 @@ importFrom(methods,setOldClass)
482482
importFrom(methods,signature)
483483
importFrom(methods,slot)
484484
importFrom(methods,slotNames)
485+
importFrom(patchwork,wrap_plots)
485486
importFrom(pbapply,pbapply)
486487
importFrom(pbapply,pblapply)
487488
importFrom(pbapply,pbsapply)

NEWS.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
All notable changes to Seurat will be documented in this file.
33
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
44

5-
## [3.1.3] = 2020-02-07
5+
## [3.1.4] - 2020-02-20
6+
### Changes
7+
- Fixes to `DoHeatmap` to remain compatible with ggplot2 v3.3
8+
- Adoption of `patchwork` framework to replace `CombinePlots`
9+
10+
## [3.1.3] - 2020-02-07
611
### Added
712
- New system agnostic `Which` function to address problems with FItSNE on Windows
813

R/convenience.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ PCHeatmap <- function(object, ...) {
1919
return(do.call(what = 'DimHeatmap', args = args))
2020
}
2121

22+
#' @param ... Extra parameters passed to \code{DimPlot}
23+
#'
2224
#' @rdname DimPlot
2325
#' @export
2426
#'

R/objects.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5667,19 +5667,24 @@ merge.Assay <- function(
56675667
if (all(IsSCT(assay = assays))) {
56685668
vst.set.new <- list()
56695669
idx <- 1
5670+
umi.assay.new <- list()
56705671
for (i in 1:length(x = assays)) {
56715672
vst.set.old <- Misc(object = assays[[i]], slot = "vst.set")
5673+
umi.assay.old <- Misc(object = assays[[i]], slot = "umi.assay")
56725674
if (!is.null(x = vst.set.old)) {
56735675
for (j in 1:length(x = vst.set.old)) {
56745676
vst.set.new[[idx]] <- vst.set.old[[j]]
5677+
umi.assay.new[[idx]] <- umi.assay.old[[j]]
56755678
idx <- idx + 1
56765679
}
56775680
} else if (!is.null(x = Misc(object = assays[[i]], slot = "vst.out"))) {
56785681
vst.set.new[[idx]] <- Misc(object = assays[[i]], slot = "vst.out")
5682+
umi.assay.new[[idx]] <- Misc(object = assays[[i]], slot = "umi.assay")
56795683
idx <- idx + 1
56805684
}
56815685
}
56825686
Misc(object = combined.assay, slot = "vst.set") <- vst.set.new
5687+
Misc(object = combined.assay, slot = "umi.assay") <- umi.assay.new
56835688
scale.data <- do.call(
56845689
what = cbind,
56855690
args = lapply(X = assays, FUN = function(x) GetAssayData(object = x, slot = "scale.data"))

R/preprocessing.R

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,14 +453,16 @@ GetResidual <- function(
453453
object,
454454
features,
455455
assay = "SCT",
456-
umi.assay = "RNA",
456+
umi.assay = NULL,
457457
clip.range = NULL,
458458
replace.value = FALSE,
459459
verbose = TRUE
460460
) {
461461
if (!IsSCT(assay = object[[assay]])) {
462462
stop(assay, " assay was not generated by SCTransform")
463463
}
464+
umi.assay <- umi.assay %||% Misc(object = object[[assay]], slot = "umi.assay")
465+
umi.assay <- umi.assay %||% "RNA" # for object created in 3.1.1 or earlier, default to RNA
464466
if (replace.value) {
465467
new_features <- features
466468
} else {
@@ -534,7 +536,7 @@ GetResidual <- function(
534536
object.v <- GetResidualVstOut(
535537
object = object.v,
536538
assay = assay,
537-
umi.assay = umi.assay,
539+
umi.assay = umi.assay[[v]],
538540
new_features = new_features,
539541
vst_out = vst_out,
540542
clip.range = clip.range,
@@ -1353,6 +1355,7 @@ SCTransform <- function(
13531355
# save clip.range into vst model
13541356
vst.out$arguments$sct.clip.range <- clip.range
13551357
Misc(object = assay.out, slot = 'vst.out') <- vst.out
1358+
Misc(object = assay.out, slot = 'umi.assay') <- assay
13561359
# also put gene attributes in meta.features
13571360
assay.out[[paste0('sct.', names(x = vst.out$gene_attr))]] <- vst.out$gene_attr
13581361
assay.out[['sct.variable']] <- rownames(x = assay.out[[]]) %in% top.features

0 commit comments

Comments
 (0)