Skip to content

Commit

Permalink
update tests neighbor name
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhanH committed Feb 13, 2021
1 parent 4d8ad0b commit 4437c0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/testthat/test_integration.R
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,10 @@ test_that("FindTransferAnchors with project.query and reference.reduction works"
ref <- FindNeighbors(object = ref, reduction = "pca", dims = 1:30, return.neighbor = TRUE, k.param = 31, verbose = FALSE, l2.norm = TRUE, nn.method = "annoy")
test_that("FindTransferAnchors with reference.neighbors precomputed works", {
skip_on_cran()
anchors <- FindTransferAnchors(reference = ref, query = query, reference.neighbors = "RNA_nn", k.filter = 50)
anchors <- FindTransferAnchors(reference = ref, query = query, reference.neighbors = "RNA.nn", k.filter = 50)
expect_error(FindTransferAnchors(reference = ref, query = query, reference.neighbors = "BAD", k.filter = 50))
expect_error(FindTransferAnchors(reference = ref, query = query, reference.neighbors = "RNA_nn", k.filter = 50, k.score = 31))
expect_error(FindTransferAnchors(reference = ref, query = query, reference.neighbors = "RNA_nn", k.filter = 50, k.anchor = 31))
expect_error(FindTransferAnchors(reference = ref, query = query, reference.neighbors = "RNA.nn", k.filter = 50, k.score = 31))
expect_error(FindTransferAnchors(reference = ref, query = query, reference.neighbors = "RNA.nn", k.filter = 50, k.anchor = 31))
co <- anchors@object.list[[1]]
expect_equal(dim(co), c(100, 160))
expect_equal(Reductions(co), c("pcaproject", "pcaproject.l2"))
Expand Down

0 comments on commit 4437c0e

Please sign in to comment.