... | ... |
@@ -1,34 +1,36 @@ |
1 |
-library(minfiData) |
|
2 |
-library(minfi) |
|
3 |
-library(shinyMethyl) |
|
1 |
+#library(minfiData) |
|
2 |
+#library(minfi) |
|
3 |
+#library(shinyMethyl) |
|
4 | 4 |
|
5 |
-test_that("shinySummarize function", { |
|
5 |
+# test_that("shinySummarize function", { |
|
6 | 6 |
|
7 |
- data(RGsetEx, package="minfiData") |
|
8 |
- shinyMethylSet <- shinySummarize(RGsetEx) |
|
9 |
- beta <- getBeta(shinyMethylSet) |
|
10 |
- m <- getM(shinyMethylSet) |
|
11 |
- meth <- getMeth(shinyMethylSet) |
|
12 |
- unmeth <- getUnmeth(shinyMethylSet) |
|
13 |
- cn <- getCN(shinyMethylSet) |
|
14 |
- green <- getGreenControls(shinyMethylSet) |
|
15 |
- red <- getRedControls(shinyMethylSet) |
|
16 |
- all.matrices <- c(beta=beta, |
|
17 |
- m=m, |
|
18 |
- meth=meth, |
|
19 |
- unmeth=unmeth, |
|
20 |
- cn=cn, |
|
21 |
- green=green, |
|
22 |
- red=red) |
|
23 |
- currentDigests <- lapply(all.matrices, minfi:::.digestMatrix) |
|
7 |
+# skip_on_os(os="windows") |
|
24 | 8 |
|
25 |
- for (i in seq_along(currentDigests)){ |
|
26 |
- name <- paste0(names(currentDigests)[i], ".rds") |
|
27 |
- name <- gsub(" ", "_", name) |
|
28 |
- file <- file.path("objects", name) |
|
29 |
- expect_equal_to_reference(currentDigests[[i]], |
|
30 |
- file=file) |
|
31 |
- } |
|
32 |
-}) |
|
9 |
+# data(RGsetEx, package="minfiData") |
|
10 |
+# shinyMethylSet <- shinySummarize(RGsetEx) |
|
11 |
+# beta <- getBeta(shinyMethylSet) |
|
12 |
+# m <- getM(shinyMethylSet) |
|
13 |
+# meth <- getMeth(shinyMethylSet) |
|
14 |
+# unmeth <- getUnmeth(shinyMethylSet) |
|
15 |
+# cn <- getCN(shinyMethylSet) |
|
16 |
+# green <- getGreenControls(shinyMethylSet) |
|
17 |
+# red <- getRedControls(shinyMethylSet) |
|
18 |
+# all.matrices <- c(beta=beta, |
|
19 |
+# m=m, |
|
20 |
+# meth=meth, |
|
21 |
+# unmeth=unmeth, |
|
22 |
+# cn=cn, |
|
23 |
+# green=green, |
|
24 |
+# red=red) |
|
25 |
+# currentDigests <- lapply(all.matrices, minfi:::.digestMatrix) |
|
26 |
+ |
|
27 |
+# for (i in seq_along(currentDigests)){ |
|
28 |
+# name <- paste0(names(currentDigests)[i], ".rds") |
|
29 |
+# name <- gsub(" ", "_", name) |
|
30 |
+# file <- file.path("objects", name) |
|
31 |
+# expect_equal_to_reference(currentDigests[[i]], |
|
32 |
+# file=file) |
|
33 |
+# } |
|
34 |
+# }) |
|
33 | 35 |
|
34 | 36 |
|
... | ... |
@@ -13,15 +13,13 @@ test_that("shinySummarize function", { |
13 | 13 |
cn <- getCN(shinyMethylSet) |
14 | 14 |
green <- getGreenControls(shinyMethylSet) |
15 | 15 |
red <- getRedControls(shinyMethylSet) |
16 |
- pca <- shinyMethylSet@pca |
|
17 | 16 |
all.matrices <- c(beta=beta, |
18 | 17 |
m=m, |
19 | 18 |
meth=meth, |
20 | 19 |
unmeth=unmeth, |
21 | 20 |
cn=cn, |
22 | 21 |
green=green, |
23 |
- red=red, |
|
24 |
- pca=pca) |
|
22 |
+ red=red) |
|
25 | 23 |
currentDigests <- lapply(all.matrices, minfi:::.digestMatrix) |
26 | 24 |
|
27 | 25 |
for (i in seq_along(currentDigests)){ |
... | ... |
@@ -24,8 +24,13 @@ test_that("shinySummarize function", { |
24 | 24 |
pca=pca) |
25 | 25 |
currentDigests <- lapply(all.matrices, minfi:::.digestMatrix) |
26 | 26 |
|
27 |
- for (i in 1:length(currentDigests)){ |
|
28 |
- file <- file.path("objects",names(currentDigests)[i]) |
|
29 |
- expect_equal_to_reference(currentDigests[[i]],file=file) |
|
27 |
+ for (i in seq_along(currentDigests)){ |
|
28 |
+ name <- paste0(names(currentDigests)[i], ".rds") |
|
29 |
+ name <- gsub(" ", "_", name) |
|
30 |
+ file <- file.path("objects", name) |
|
31 |
+ expect_equal_to_reference(currentDigests[[i]], |
|
32 |
+ file=file) |
|
30 | 33 |
} |
31 | 34 |
}) |
35 |
+ |
|
36 |
+ |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,31 @@ |
1 |
+library(minfiData) |
|
2 |
+library(minfi) |
|
3 |
+library(shinyMethyl) |
|
4 |
+ |
|
5 |
+test_that("shinySummarize function", { |
|
6 |
+ |
|
7 |
+ data(RGsetEx, package="minfiData") |
|
8 |
+ shinyMethylSet <- shinySummarize(RGsetEx) |
|
9 |
+ beta <- getBeta(shinyMethylSet) |
|
10 |
+ m <- getM(shinyMethylSet) |
|
11 |
+ meth <- getMeth(shinyMethylSet) |
|
12 |
+ unmeth <- getUnmeth(shinyMethylSet) |
|
13 |
+ cn <- getCN(shinyMethylSet) |
|
14 |
+ green <- getGreenControls(shinyMethylSet) |
|
15 |
+ red <- getRedControls(shinyMethylSet) |
|
16 |
+ pca <- shinyMethylSet@pca |
|
17 |
+ all.matrices <- c(beta=beta, |
|
18 |
+ m=m, |
|
19 |
+ meth=meth, |
|
20 |
+ unmeth=unmeth, |
|
21 |
+ cn=cn, |
|
22 |
+ green=green, |
|
23 |
+ red=red, |
|
24 |
+ pca=pca) |
|
25 |
+ currentDigests <- lapply(all.matrices, minfi:::.digestMatrix) |
|
26 |
+ |
|
27 |
+ for (i in 1:length(currentDigests)){ |
|
28 |
+ file <- file.path("objects",names(currentDigests)[i]) |
|
29 |
+ expect_equal_to_reference(currentDigests[[i]],file=file) |
|
30 |
+ } |
|
31 |
+}) |