Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #237

Merged
merged 2 commits into from
Oct 5, 2024
Merged

Dev #237

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

+ Minor bug fixes.
+ Improved matrix inversion through judicious usage of C++.
+ Added S3 method `summary.scLANE()` to be used on output from `testDynamic()`.

# Changes in version 0.8.3

Expand Down
7 changes: 7 additions & 0 deletions tests/testthat/test_scLANE.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ withr::with_output_sink(tempfile(), {
id.vec = sim_data$subject,
n.cores = 2L,
verbose = FALSE)
# S3 summary method
scLANE_summary <- summary(glm_gene_stats)
# get results tables overall
glm_test_results <- getResultsDE(glm_gene_stats, n.cores = 1L)
gee_test_results <- getResultsDE(gee_gene_stats)
Expand Down Expand Up @@ -308,6 +310,11 @@ test_that("testDynamic() output", {
expect_gt(sum(purrr::map_lgl(glmm_gene_stats, \(x) x$Lineage_A$Model_Status == "MARGE model OK, null model OK")), 0)
})

test_that("summary() output", {
expect_s3_class(scLANE_summary, "summary.scLANE")
expect_length(scLANE_summary, 5)
})

test_that("getResultsDE() output", {
expect_s3_class(glm_test_results, "data.frame")
expect_s3_class(gee_test_results, "data.frame")
Expand Down
Loading