git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/OncoSimulR@109194 bc3139a8-67e5-0310-9ffc-ced21a209358
... | ... |
@@ -1,17 +1,14 @@ |
1 | 1 |
test_that("oncoSimulSample out of time triggered", { |
2 |
- |
|
3 | 2 |
oi <- allFitnessEffects(orderEffects = |
4 |
- c("F > D" = -0.3, "D > F" = 0.4), |
|
3 |
+ c("F > D" = -0.3, "D > F" = 0.1), |
|
5 | 4 |
noIntGenes = rexp(5, 10), |
6 | 5 |
geneToModule = |
7 | 6 |
c("Root" = "Root", |
8 | 7 |
"F" = "f1, f2, f3", |
9 | 8 |
"D" = "d1, d2") ) |
10 |
- |
|
11 |
- expect_message(out <- oncoSimulSample(100, oi, |
|
9 |
+ expect_message(out <- oncoSimulSample(5000, oi, |
|
12 | 10 |
max.wall.time.total = 1), |
13 | 11 |
"Run out of time") |
14 |
- |
|
15 | 12 |
expect_true(out$HittedWallTime) |
16 | 13 |
}) |
17 | 14 |
|
... | ... |
@@ -26,7 +23,7 @@ test_that("oncoSimulSample out of time triggered, 2", { |
26 | 23 |
s = 0.05, |
27 | 24 |
sh = -0.3, |
28 | 25 |
typeDep = "MN")) |
29 |
- expect_message(out <- oncoSimulSample(100, pancr, |
|
26 |
+ expect_message(out <- oncoSimulSample(5000, pancr, |
|
30 | 27 |
max.wall.time.total = 1), |
31 | 28 |
"Run out of time") |
32 | 29 |
expect_true(out$HittedWallTime) |
... | ... |
@@ -36,14 +33,14 @@ test_that("oncoSimulSample out of time triggered, 2", { |
36 | 33 |
|
37 | 34 |
test_that("oncoSimulSample out of attempts triggered", { |
38 | 35 |
oi <- allFitnessEffects(orderEffects = |
39 |
- c("F > D" = -0.3, "D > F" = 0.4), |
|
36 |
+ c("F > D" = -0.3, "D > F" = 0.05), |
|
40 | 37 |
noIntGenes = rexp(5, 10), |
41 | 38 |
geneToModule = |
42 | 39 |
c("Root" = "Root", |
43 | 40 |
"F" = "f1, f2, f3", |
44 | 41 |
"D" = "d1, d2") ) |
45 |
- expect_message(out <- oncoSimulSample(10, oi, |
|
46 |
- max.num.tries.total = 11), |
|
42 |
+ expect_message(out <- oncoSimulSample(5000, oi, |
|
43 |
+ max.num.tries.total = 5001), |
|
47 | 44 |
"Run out of attempts (in C++)", fixed = TRUE) |
48 | 45 |
expect_true(out$HittedMaxTries) |
49 | 46 |
}) |
... | ... |
@@ -57,8 +54,8 @@ test_that("oncoSimulSample out of attempts triggered, 2", { |
57 | 54 |
s = 0.05, |
58 | 55 |
sh = -0.3, |
59 | 56 |
typeDep = "MN")) |
60 |
- expect_message(out <- oncoSimulSample(10, pancr, |
|
61 |
- max.num.tries.total = 12), |
|
57 |
+ expect_message(out <- oncoSimulSample(5000, pancr, |
|
58 |
+ max.num.tries.total = 5002), |
|
62 | 59 |
"Run out of attempts (in C++)", fixed = TRUE) |
63 | 60 |
expect_true(out$HittedMaxTries) |
64 | 61 |
}) |
... | ... |
@@ -79,13 +76,14 @@ test_that("oncoSimulSample out of time in C++ triggered", { |
79 | 76 |
s = 0.05, |
80 | 77 |
sh = -0.3, |
81 | 78 |
typeDep = "MN")) |
82 |
- |
|
83 | 79 |
expect_message(out <- oncoSimulSample(1, pancr, "McFL", |
84 |
- detectionSize = 1e9, |
|
85 |
- detectionDrivers = 4, |
|
86 |
- max.wall.time.total = 0.5), |
|
80 |
+ detectionSize = 1e9, |
|
81 |
+ detectionDrivers = 6, |
|
82 |
+ initSize = 50, |
|
83 |
+ finalTime = 10000, |
|
84 |
+ sampleEvery = 0.005, |
|
85 |
+ max.wall.time.total = 1), |
|
87 | 86 |
"Run out of time (in C++)", fixed = TRUE) |
88 |
- |
|
89 | 87 |
expect_true(out$HittedWallTime) |
90 | 88 |
}) |
91 | 89 |
|
... | ... |
@@ -1,15 +1,15 @@ |
1 | 1 |
\usepackage[% |
2 |
- shash={b9add94}, |
|
3 |
- lhash={b9add94a80c0037d5de904c87757f6a1ce79f444}, |
|
2 |
+ shash={39be2bc}, |
|
3 |
+ lhash={39be2bc525ceffa46743bd5fd80cde0c1f959434}, |
|
4 | 4 |
authname={Ramon Diaz-Uriarte (at Coleonyx)}, |
5 | 5 |
authemail={rdiaz02@gmail.com}, |
6 |
- authsdate={2015-10-02}, |
|
7 |
- authidate={2015-10-02 16:21:37 +0200}, |
|
8 |
- authudate={1443795697}, |
|
6 |
+ authsdate={2015-10-05}, |
|
7 |
+ authidate={2015-10-05 00:56:02 +0200}, |
|
8 |
+ authudate={1443999362}, |
|
9 | 9 |
commname={Ramon Diaz-Uriarte (at Coleonyx)}, |
10 | 10 |
commemail={rdiaz02@gmail.com}, |
11 |
- commsdate={2015-10-02}, |
|
12 |
- commidate={2015-10-02 16:21:37 +0200}, |
|
13 |
- commudate={1443795697}, |
|
11 |
+ commsdate={2015-10-05}, |
|
12 |
+ commidate={2015-10-05 00:56:02 +0200}, |
|
13 |
+ commudate={1443999362}, |
|
14 | 14 |
refnames={ (HEAD -> master)} |
15 | 15 |
]{gitsetinfo} |
16 | 16 |
\ No newline at end of file |