From 8161deb24ab902c8251de9b47fd657fc9262b449 Mon Sep 17 00:00:00 2001 From: Dariusz Murakowski Date: Mon, 17 Feb 2014 06:52:07 -0500 Subject: [PATCH] Use '|' as epitope mut/WT field list separator (on single line). --- test/importState.test.ep | 3 +-- test/importState.test.expected-out | 7 +++++-- test/verbose.test.expected-out | 7 +++++-- wf.cpp | 21 ++++++++++++++++++++- 4 files changed, 31 insertions(+), 7 deletions(-) diff --git a/test/importState.test.ep b/test/importState.test.ep index b152847..4476bf5 100644 --- a/test/importState.test.ep +++ b/test/importState.test.ep @@ -1,2 +1 @@ -24 25 26 27 28 29 31 32 -30 +24 25 26 27 28 29 31 32 | 30 diff --git a/test/importState.test.expected-out b/test/importState.test.expected-out index 7312035..d8e8adf 100644 --- a/test/importState.test.expected-out +++ b/test/importState.test.expected-out @@ -1,4 +1,7 @@ seed = 66314 1 30 57 60 74 78 90; -24 25 26 27 28 29 31 32 -30 +24 25 26 27 28 29 31 32 | 30 +----------- +24 25 26 27 28 29 31 32 | 30 +----------- +24 25 26 27 28 29 31 32 | 30 diff --git a/test/verbose.test.expected-out b/test/verbose.test.expected-out index f6a0dcd..0170b5a 100644 --- a/test/verbose.test.expected-out +++ b/test/verbose.test.expected-out @@ -1,7 +1,8 @@ seed = 66314 1 30 57 60 74 78 90; -24 25 26 27 28 29 31 32 -30 +24 25 26 27 28 29 31 32 | 30 +----------- +24 25 26 27 28 29 31 32 | 30 survival probability 0.00240569 number survived 0 total number 0 0 30 57 60 74 78 90 survival probability 0.00735298 number survived 1 total number 1 1 30 57 60 74 78 90 survival probability 0.000431987 number survived 0 total number 0 2 30 57 60 74 78 90 @@ -314,6 +315,8 @@ survival probability 0.998641 number survived 21 total number 21 30 60 74 78 90 survival probability 1 number survived 39 total number 39 57 60 74 78 90 checkpoint, total_deaths = 50637 The total population size is 49363 +----------- +24 25 26 27 28 29 31 32 | 30 survival probability 0.00240687 number survived 0 total number 0 0 30 57 60 74 78 90 survival probability 0.00735655 number survived 0 total number 0 1 30 57 60 74 78 90 survival probability 0.000432199 number survived 0 total number 0 2 30 57 60 74 78 90 diff --git a/wf.cpp b/wf.cpp index fcb55de..c53acf9 100644 --- a/wf.cpp +++ b/wf.cpp @@ -102,6 +102,20 @@ void run(RunParameters &r, unsigned seed) { H.set_epitope(r.eWT, r.eMut, r.penalty); H.set_temp(r.bh, r.bJ); Population P(H, r.n, r.mu, r.initPop, r.initFrac); + + // print epitopes + std::cout << "-----------\n"; + for (unsigned ep=0; ep