Skip to content

Commit

Permalink
Merge branch 'develop' into fix/aggregate_expression
Browse files Browse the repository at this point in the history
  • Loading branch information
mhkowalski authored Nov 15, 2023
2 parents 77ee042 + b6217b1 commit bd0fc57
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 11 deletions.
7 changes: 7 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Unreleased

## Changes

- Fixed `SCTransform.StdAssay` to pass extra arguments to `sctransform::vst()`. Fixes [#875](https://github.com/satijalab/seurat/issues/7998)


# Seurat 5.0.0 (2023-10-25)

## Added
Expand Down
4 changes: 2 additions & 2 deletions R/differential_expression.R
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ FindAllMarkers <- function(
subset = (myAUC > return.thresh | myAUC < (1 - return.thresh))
)
} else if (is.null(x = node) || test.use %in% c('bimod', 't')) {
gde <- gde[order(gde$p_val, -gde[, 2]), ]
gde <- gde[order(gde$p_val, -abs(gde$pct.1-gde$pct.2)), ]
gde <- subset(x = gde, subset = p_val < return.thresh)
}
if (nrow(x = gde) > 0) {
Expand Down Expand Up @@ -612,7 +612,7 @@ FindMarkers.default <- function(
if (test.use %in% DEmethods_nocorrect()) {
de.results <- de.results[order(-de.results$power, -de.results[, 1]), ]
} else {
de.results <- de.results[order(de.results$p_val, -abs(de.results[,colnames(fc.results)[1]])), ]
de.results <- de.results[order(de.results$p_val, -abs(de.results$pct.1-de.results$pct.2)), ]
de.results$p_val_adj = p.adjust(
p = de.results$p_val,
method = "bonferroni",
Expand Down
3 changes: 2 additions & 1 deletion R/preprocessing5.R
Original file line number Diff line number Diff line change
Expand Up @@ -1260,7 +1260,8 @@ SCTransform.StdAssay <- function(
conserve.memory = conserve.memory,
return.only.var.genes = return.only.var.genes,
seed.use = seed.use,
verbose = verbose)
verbose = verbose,
...)
min_var <- vst.out$arguments$min_variance
residual.type <- vst.out[['residual_type']] %||% 'pearson'
assay.out <- CreateSCTAssay(vst.out = vst.out, do.correct.umi = do.correct.umi, residual.type = residual.type,
Expand Down
4 changes: 2 additions & 2 deletions man/reexports.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/RcppExports.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ BEGIN_RCPP
END_RCPP
}

RcppExport SEXP isnull(void *);
RcppExport SEXP isnull(SEXP);

static const R_CallMethodDef CallEntries[] = {
{"_Seurat_RunModularityClusteringCpp", (DL_FUNC) &_Seurat_RunModularityClusteringCpp, 9},
Expand Down
10 changes: 5 additions & 5 deletions tests/testthat.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
library(testthat)
library(Seurat)

# Run tests for 'v3'
message('Run tests for v3 assay')
options(Seurat.object.assay.version = 'v3')
test_check("Seurat")
#
# # Run tests for 'v3'
# message('Run tests for v3 assay')
# options(Seurat.object.assay.version = 'v3')
# test_check("Seurat")

# Run tests for 'v5'
message('Run tests for v5 assay')
Expand Down

0 comments on commit bd0fc57

Please sign in to comment.