Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into propagation-march-2024
Browse files Browse the repository at this point in the history
walkowif authored Apr 18, 2024
2 parents 9b94d23 + 6dd1844 commit 9fa9896
Showing 5 changed files with 19 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -122,7 +122,7 @@ repos:
design/.*
)$
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-added-large-files
args: ["--maxkb=1000"]
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Type: Package
Package: teal.modules.hermes
Title: RNA-Seq Analysis Modules to Add to a Teal Application
Version: 0.1.6.9010
Date: 2024-04-02
Version: 0.1.6.9011
Date: 2024-04-08
Authors@R: c(
person("Daniel", "Sabanés Bové", , "daniel.sabanes_bove@roche.com", role = c("aut", "cre")),
person("Nikolas", "Burkoff", role = "aut"),
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# teal.modules.hermes 0.1.6.9010
# teal.modules.hermes 0.1.6.9011

### Miscellaneous
* Added placeholders for `assaySpec`, `adtteSpec` and `geneSpec` inputs when no option is selected.
18 changes: 9 additions & 9 deletions tests/testthat/_snaps/pca.md
Original file line number Diff line number Diff line change
@@ -44,15 +44,15 @@
cat(res)
Output
x y PANEL group shape colour size fill alpha stroke
1 -0.68789565 0.04912578 1 -1 19 black 1.5 NA NA 0.5
2 -0.37824954 0.19209841 1 -1 19 black 1.5 NA NA 0.5
3 0.07502276 -0.31568702 1 -1 19 black 1.5 NA NA 0.5
4 0.33995282 -0.26532014 1 -1 19 black 1.5 NA NA 0.5
5 0.29004708 0.25038379 1 -1 19 black 1.5 NA NA 0.5
6 0.08718694 0.09422278 1 -1 19 black 1.5 NA NA 0.5
7 0.15015883 0.07932206 1 -1 19 black 1.5 NA NA 0.5
8 -0.05952522 -0.58893592 1 -1 19 black 1.5 NA NA 0.5
9 0.18330198 0.50479025 1 -1 19 black 1.5 NA NA 0.5
1 0.22531097 0.04912578 1 -1 19 black 1.5 NA NA 0.5
2 -0.32245662 0.19209841 1 -1 19 black 1.5 NA NA 0.5
3 0.19042723 -0.31568702 1 -1 19 black 1.5 NA NA 0.5
4 -0.12543919 -0.26532014 1 -1 19 black 1.5 NA NA 0.5
5 0.29815055 0.25038379 1 -1 19 black 1.5 NA NA 0.5
6 0.54809249 0.09422278 1 -1 19 black 1.5 NA NA 0.5
7 -0.06706013 0.07932206 1 -1 19 black 1.5 NA NA 0.5
8 -0.30521740 -0.58893592 1 -1 19 black 1.5 NA NA 0.5
9 -0.44180789 0.50479025 1 -1 19 black 1.5 NA NA 0.5

---

6 changes: 6 additions & 0 deletions tests/testthat/test-pca.R
Original file line number Diff line number Diff line change
@@ -112,12 +112,18 @@ test_that("pca module works as expected in the test app", {
# label option and matrix option.
app$set_inputs(!!ns("tab_selected") := "PCA")
app$set_inputs(!!ns("assay-name") := "rpkm")
app$wait_for_idle(timeout = 30000) # Important to ensure update of x_var.
app$set_inputs(!!ns("x_var") := "3")
app$set_inputs(!!ns("y_var") := "4")
app$set_inputs(!!ns("var_pct") := FALSE)
app$set_inputs(!!ns("label") := FALSE)

app$wait_for_idle(timeout = 30000)
res <- app$get_value(input = ns("x_var"))
expect_identical(res, "3")
res <- app$get_value(input = ns("y_var"))
expect_identical(res, "4")

res <- app$get_value(output = ns("test_pca"))
expect_snapshot(
cat(res)

0 comments on commit 9fa9896

Please sign in to comment.