Skip to content

Commit

Permalink
Remove check for nrow(test) as 'test' doesn't exist in trainSingleR.
Browse files Browse the repository at this point in the history
Whoops, forgot how trainSingleR worked in the previous commit.
  • Loading branch information
LTLA committed Oct 27, 2024
1 parent 67247e7 commit 1e086a2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: SingleR
Title: Reference-Based Single-Cell RNA-Seq Annotation
Version: 2.7.7
Version: 2.7.8
Date: 2024-10-26
Authors@R: c(person("Dvir", "Aran", email="[email protected]", role=c("aut", "cph")),
person("Aaron", "Lun", email="[email protected]", role=c("ctb", "cre")),
Expand Down
1 change: 0 additions & 1 deletion R/trainSingleR.R
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,6 @@ trainSingleR <- function(
}

if (is.null(test.genes)) {
stopifnot(nrow(test) == nrow(ref))
test.genes <- ref.genes <- seq_len(nrow(ref))
} else {
intersection <- .create_intersection(test.genes, rownames(ref))
Expand Down

0 comments on commit 1e086a2

Please sign in to comment.