Skip to content

Commit

Permalink
ensure condition length 1
Browse files Browse the repository at this point in the history
  • Loading branch information
rharao authored Dec 16, 2024
1 parent 06f8fd7 commit 6180808
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/differential_expression.R
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ FindMarkers.Seurat <- function(
reduction = NULL,
...
) {
if (!is.null(x = group.by) && group.by != "ident") {
if (!is.null(x = group.by) && !identical(x = group.by, y = "ident")) {
if (!is.null(x = subset.ident)) {
object <- subset(x = object, idents = subset.ident)
}
Expand Down

0 comments on commit 6180808

Please sign in to comment.