Skip to content

Commit

Permalink
Merge pull request #26 from MartinLoza/igraphV2_fix
Browse files Browse the repository at this point in the history
Igraph v2 fix
  • Loading branch information
MartinLoza authored Dec 8, 2023
2 parents 05d0e38 + d29da49 commit bead6c7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: Canek
Type: Package
Title: Batch Correction of Single Cell Transcriptome Data
Version: 0.2.4
Version: 0.2.5
Authors@R: c(
person("Martin", "Loza", email = "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0002-3342-2643")),
Expand Down
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Canek 0.2.5

## Changes

- Update unit tests for compatibility with changes in igraph ([#24](https://github.com/MartinLoza/Canek/issues/24)).

# Canek 0.2.4

## Changes
Expand Down
6 changes: 3 additions & 3 deletions tests/testthat/test-Clustering.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ dataLouvain <- y$`B2/B1`$`Correction Data`$Clusters
test_that("Clustering with kmeans works", {
expect_false(is.null(dataKmeans))
expect_equal(names(dataKmeans), c("cluster", "centers"))
expect_equal(as.integer(table(dataKmeans$cluster)), 631)
expect_equal(length(dataKmeans$cluster), 631)
expect_equal(dim(dataKmeans$centers), c(1, 10))
})

test_that("Clustering with louvain works", {
expect_false(is.null(dataLouvain))
expect_equal(names(dataLouvain), c("cluster", "centers"))
expect_equal(as.integer(table(dataLouvain$cluster)), c(96, 125, 140, 171, 99))
expect_equal(dim(dataLouvain$centers), c(5, 10))
expect_equal(length(dataLouvain$cluster), 631)
expect_equal(ncol(dataLouvain$centers), 10)
})

0 comments on commit bead6c7

Please sign in to comment.