Skip to content

Commit

Permalink
Move computation of logcounts to ensure that tests work as expected.
Browse files Browse the repository at this point in the history
  • Loading branch information
kayla-jackson committed Jul 22, 2024
1 parent f2304d0 commit ad0e8ab
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/testthat/test-concordex.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ library(TENxPBMCData)
library(scater)

sce <- TENxPBMCData("pbmc3k")

# Make smaller
sce <- sce[,seq(200)]
sce <- logNormCounts(sce)

sfe <- McKellarMuscleData("small")

Expand All @@ -31,6 +28,8 @@ test_that("concordex uses 'logcounts' by default for SCE objects", {
)
})

sce <- logNormCounts(sce)

test_that("Similarity matrix is not computed with continuous labels",{
expect_warning(
calculateConcordex(sce, "pca", compute_similarity=TRUE),
Expand Down

0 comments on commit ad0e8ab

Please sign in to comment.