Skip to content

Commit

Permalink
Merge branch 'master' into v3
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed May 22, 2024
2 parents 47e38e1 + 013d7f4 commit a80efca
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 7 deletions.
3 changes: 2 additions & 1 deletion R/classifySingleR.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
#' @param tune.thresh A numeric scalar specifying the maximum difference from the maximum correlation to use in fine-tuning.
#' @param sd.thresh Deprecated and ignored.
#' @param assay.type Integer scalar or string specifying the matrix of expression values to use if \code{test} is a \linkS4class{SummarizedExperiment}.
#' @param check.missing Logical scalar indicating whether rows should be checked for missing values (and if found, removed).
#' @param check.missing Logical scalar indicating whether rows should be checked for missing values.
#' If true and any missing values are found, the rows containing these values are silently removed.
#' @param prune A logical scalar indicating whether label pruning should be performed.
#' @param num.threads Integer scalar specifying the number of threads to use for classification.
#' @param BPPARAM A \linkS4class{BiocParallelParam} object specifying the parallelization scheme to use for \code{NA} scanning, when \code{check.missing=TRUE}.
Expand Down
3 changes: 2 additions & 1 deletion R/trainSingleR.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
#' @param recompute Deprecated and ignored.
#' @param assay.type An integer scalar or string specifying the assay of \code{ref} containing the relevant expression matrix,
#' if \code{ref} is a \linkS4class{SummarizedExperiment} object (or is a list that contains one or more such objects).
#' @param check.missing Logical scalar indicating whether rows should be checked for missing values (and if found, removed).
#' @param check.missing Logical scalar indicating whether rows should be checked for missing values.
#' If true and any missing values are found, the rows containing these values are silently removed.
#' @param BNPARAM Deprecated and ignored.
#' @param approximate Logical scalar indicating whether a faster approximate method should be used to compute the quantile.
#' @param num.threads Integer scalar specifying the number of threads to use for index building.
Expand Down
3 changes: 2 additions & 1 deletion man/classifySingleR.Rd

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

3 changes: 2 additions & 1 deletion man/getClassicMarkers.Rd

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

3 changes: 2 additions & 1 deletion man/trainSingleR.Rd

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

2 changes: 1 addition & 1 deletion tests/testthat/test-classify.R
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ test_that("classifySingleR behaves with missing values", {
logcounts(sce)[1,1] <- NA

Q <- 0.8
expect_warning(out <- classifySingleR(sce, trained, fine.tune=FALSE, quantile=Q), 'missing values')
out <- classifySingleR(sce, trained, fine.tune=FALSE, quantile=Q)
ref <- classifySingleR(test, trained, fine.tune=FALSE, quantile=Q)
expect_identical(out, ref)
})
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-train.R
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ test_that("trainSingleR strips out NAs", {
sce <- training
logcounts(sce)[1,1] <- NA

expect_warning(out <- trainSingleR(sce, sce$label), "missing values")
out <- trainSingleR(sce, sce$label)
ref <- trainSingleR(sce[-1,], sce$label)

expect_identical(out$ref, ref$ref)
Expand Down

0 comments on commit a80efca

Please sign in to comment.