Skip to content

Commit

Permalink
Merge pull request satijalab#876 from satijalab/ig_marker_sorting
Browse files Browse the repository at this point in the history
Updated marker sorting
  • Loading branch information
igrabski authored Nov 10, 2023
2 parents 79c2bec + 2ddf7f4 commit b6217b1
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 5.0.0.9002
Date: 2023-11-10
Version: 5.0.0.9003
Date: 2023-10-23
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
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

0 comments on commit b6217b1

Please sign in to comment.