Skip to content

Commit 401c794

Browse files
author
Paul Hoffman
committed
Merge branch 'CRAN'
2 parents bb137d3 + 04fa741 commit 401c794

40 files changed

Lines changed: 1156 additions & 244 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ src/*.o
66
src/*.so
77
.DS_Store
88
*.pdf
9+
*.Rproj

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,9 @@ r_binary_packages:
2121
- httr
2222
- tidyr
2323
- ranger
24+
bioc_packages:
25+
- GenomeInfoDbData
26+
- DESeq2
27+
- MAST
2428
warnings_are_errors: false
2529
dist: trusty

DESCRIPTION

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: Seurat
2-
Version: 2.0.1
3-
Date: 2017-08-18
2+
Version: 2.1.0
3+
Date: 2017-10-11
44
Title: Tools for Single Cell Genomics
55
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.
66
Authors@R: c(
@@ -36,7 +36,6 @@ Imports:
3636
igraph,
3737
FNN,
3838
caret,
39-
e1071,
4039
dplyr,
4140
RColorBrewer,
4241
MASS,
@@ -48,9 +47,7 @@ Imports:
4847
Rcpp,
4948
tclust,
5049
ranger,
51-
compositions,
5250
NMF,
53-
NMOF,
5451
dtw,
5552
SDMTools,
5653
plotly,
@@ -61,7 +58,7 @@ Imports:
6158
LinkingTo: Rcpp, RcppEigen, RcppProgress
6259
License: GPL-3 | file LICENSE
6360
LazyData: true
64-
Collate:
61+
Collate:
6562
'RcppExports.R'
6663
'seurat.R'
6764
'cluster_determination.R'
@@ -94,4 +91,7 @@ Collate:
9491
'zfRenderSeurat.R'
9592
RoxygenNote: 6.0.1
9693
Suggests:
97-
testthat
94+
testthat,
95+
SummarizedExperiment,
96+
MAST,
97+
DESeq2

NAMESPACE

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ export(CaseMatch)
2020
export(CellCycleScoring)
2121
export(CellPlot)
2222
export(ClassifyCells)
23+
export(CollapseSpeciesExpressionMatrix)
2324
export(ColorTSNESplit)
2425
export(CreateSeuratObject)
2526
export(CustomDistance)
2627
export(CustomPalette)
2728
export(DBClustDimension)
2829
export(DBclust_dimension)
30+
export(DESeq2DETest)
2931
export(DMEmbed)
3032
export(DMPlot)
3133
export(DarkTheme)
@@ -84,6 +86,7 @@ export(KMeansHeatmap)
8486
export(Kclust_dimension)
8587
export(LogNormalize)
8688
export(LogVMR)
89+
export(MASTDETest)
8790
export(MakeSparse)
8891
export(MarkerTest)
8992
export(MatrixRowShuffle)
@@ -161,6 +164,7 @@ export(VizICA)
161164
export(VizPCA)
162165
export(VlnPlot)
163166
export(WhichCells)
167+
export(WilcoxDETest)
164168
export(addImputedScore)
165169
export(addMetaData)
166170
export(addSmoothedScore)
@@ -363,6 +367,7 @@ importFrom(stats,prop.test)
363367
importFrom(stats,qqplot)
364368
importFrom(stats,quantile)
365369
importFrom(stats,qunif)
370+
importFrom(stats,relevel)
366371
importFrom(stats,reorder)
367372
importFrom(stats,residuals)
368373
importFrom(stats,rnorm)
@@ -371,10 +376,13 @@ importFrom(stats,sd)
371376
importFrom(stats,smooth.spline)
372377
importFrom(stats,t.test)
373378
importFrom(stats,var)
379+
importFrom(stats,wilcox.test)
374380
importFrom(tclust,tkmeans)
375381
importFrom(tidyr,gather)
376382
importFrom(tsne,tsne)
377383
importFrom(utils,globalVariables)
384+
importFrom(utils,installed.packages)
385+
importFrom(utils,menu)
378386
importFrom(utils,packageVersion)
379387
importFrom(utils,read.table)
380388
importFrom(utils,setTxtProgressBar)

NEWS.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
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+
## [2.1.0] - 2017-10-12
6+
### Added
7+
- Support for using MAST and DESeq2 packages for differential expression testing in FindMarkers
8+
- Support for multi-modal single-cell data via @assay slot
9+
10+
### Changed
11+
- Default DE test changed to Wilcoxon rank sum test
12+
513
## [2.0.1] - 2017-08-18
614
### Added
715
- Now available on CRAN

R/cluster_determination.R

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ FindClusters <- function(
100100
}
101101
if ((
102102
missing(x = genes.use) && missing(x = dims.use) && missing(x = k.param) &&
103-
missing(x = k.scale) && missing(x = prune.SNN) && snn.built
104-
) || reuse.SNN) {
103+
missing(x = k.scale) && missing(x = prune.SNN) && missing(x = distance.matrix)
104+
&& snn.built) || reuse.SNN) {
105105
save.SNN <- TRUE
106106
if (reuse.SNN && !snn.built) {
107107
stop("No SNN stored to reuse.")
@@ -116,6 +116,9 @@ FindClusters <- function(
116116
} else {
117117
# if any SNN building parameters are provided or it hasn't been built, build
118118
# a new SNN
119+
if(!is.null(distance.matrix)) {
120+
force.recalc <- TRUE
121+
}
119122
object <- BuildSNN(
120123
object = object,
121124
genes.use = genes.use,
@@ -135,10 +138,12 @@ FindClusters <- function(
135138
parameters.to.store$resolution <- r
136139
if (CalcInfoExists(object, paste0("FindClusters.res.", r)) & force.recalc != TRUE){
137140
parameters.to.store$object <- NULL
141+
parameters.to.store$print.output <- NULL
138142
old.parameters <- GetAllCalcParam(object = object,
139143
calculation = paste0("FindClusters.res.", r))
140144
old.parameters$time <- NULL
141-
if(all(suppressWarnings(unlist(lapply(X = 1:length(old.parameters), function(x) old.parameters[[x]] == parameters.to.store[[x]]))))){
145+
old.parameters$print.output <- NULL
146+
if(all(all.equal(old.parameters, parameters.to.store) == TRUE)){
142147
warning(paste0("Clustering parameters for resolution ", r, " exactly match those of already computed. \n To force recalculation, set force.recalc to TRUE."))
143148
object <- SetAllIdent(object, paste0("res.", r))
144149
next

R/deprecated_functions.R

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,57 @@ RegressOut <- function(...) {
605605
stop()
606606
}
607607

608+
PCAFast <- function(...) {
609+
.Deprecated("PCA", package= "Seurat")
610+
PCA(...)
611+
}
612+
613+
writ.table <- function(...) {
614+
.Deprecated(
615+
new = 'write.table',
616+
package = 'Seurat',
617+
msg = "'writ.table' no longer exists, use 'write.table' instead"
618+
)
619+
}
620+
621+
jackRandom <- function(...) {
622+
.Deprecated(new = 'JackRandom', package = 'Seurat')
623+
JackRandom(...)
624+
}
625+
626+
MeanVarPlot <- function(...) {
627+
.Deprecated(new = 'FindVariableGenes', package = 'Seurat')
628+
FindVariableGenes(...)
629+
}
630+
631+
HeatmapNode <- function(...) {
632+
.Deprecated(new = 'NodeHeatmap', package = 'Seurat')
633+
NodeHeatmap(...)
634+
}
635+
636+
myPalette <- function(...) {
637+
.Deprecated(new = 'CustomPalette', package = 'Seurat')
638+
CustomPalette(...)
639+
}
640+
641+
minusr <- function(...) {
642+
.Deprecated(
643+
new = 'SubsetRow',
644+
package = 'Seurat',
645+
msg = "Use SubsetRow with 'invert = TRUE' instead"
646+
)
647+
SubsetRow(..., invert = TRUE)
648+
}
649+
650+
minusc <- function(...) {
651+
.Deprecated(
652+
new = 'SubsetColumn',
653+
package = 'Seurat',
654+
msg = "Use SubsetColumn with 'invert = TRUE' instead"
655+
)
656+
SubsetColumn(..., invert = TRUE)
657+
}
658+
608659
VizClassification <- function(...) {
609660
.Deprecated(
610661
package = 'Seurat',

0 commit comments

Comments
 (0)