summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Dariusz Murakowski [Tue, 21 Apr 2015 22:08:18 +0000 (18:08 -0400)]
Remove mutation rate "mu" from Virus object; now exclusively in reaction.
Dariusz Murakowski [Tue, 21 Apr 2015 21:32:20 +0000 (17:32 -0400)]
Update Makefile with header dependencies.
Dariusz Murakowski [Tue, 21 Apr 2015 21:00:55 +0000 (17:00 -0400)]
Multiple runs, more rate args, end simulation when all reactions exhausted.
Dariusz Murakowski [Tue, 21 Apr 2015 19:37:56 +0000 (15:37 -0400)]
Print virus species sequence when verbose.
Dariusz Murakowski [Tue, 21 Apr 2015 19:02:50 +0000 (15:02 -0400)]
Formatting: retab, clean whitespace.
Dariusz Murakowski [Tue, 21 Apr 2015 18:47:42 +0000 (14:47 -0400)]
Delete unused functions for SS.
Dariusz Murakowski [Tue, 21 Apr 2015 18:37:46 +0000 (14:37 -0400)]
Clarify dependencies. Copy hamiltonian.{cpp,h} to ham_ss.{cpp,h}. Copy contents of virus.{cpp,h} into pop_ss.{cpp,h}.
Dariusz Murakowski [Tue, 21 Apr 2015 18:24:40 +0000 (14:24 -0400)]
Virus reproduction reaction stores its own mutation rate.
Dariusz Murakowski [Tue, 21 Apr 2015 18:18:09 +0000 (14:18 -0400)]
Free memory from species and reaction arrays (to satisfy some valgrind).
Dariusz Murakowski [Tue, 21 Apr 2015 17:27:18 +0000 (13:27 -0400)]
Proper species names. Initial counts CTL counts for each type.
Dariusz Murakowski [Sat, 18 Apr 2015 00:32:55 +0000 (20:32 -0400)]
Output at intervals, remove more WF.
Dariusz Murakowski [Fri, 17 Apr 2015 18:25:35 +0000 (14:25 -0400)]
Clean out WF-only stuff.
Dariusz Murakowski [Fri, 17 Apr 2015 17:18:25 +0000 (13:18 -0400)]
Full system, including parameters.
Dariusz Murakowski [Thu, 9 Apr 2015 14:31:39 +0000 (10:31 -0400)]
Initialize multiple CTL clones+epitopes. Output at intervals. Pretty-print the sequence.
Dariusz Murakowski [Thu, 9 Apr 2015 13:11:09 +0000 (09:11 -0400)]
Separate function for running the dynamics.
Dariusz Murakowski [Thu, 9 Apr 2015 12:03:00 +0000 (08:03 -0400)]
Framework for killing by CTL.
Dariusz Murakowski [Thu, 9 Apr 2015 05:10:37 +0000 (01:10 -0400)]
Flesh out reactions for virus reproduction (with mutation) and death.
Dariusz Murakowski [Wed, 8 Apr 2015 20:48:00 +0000 (16:48 -0400)]
Start of Gillespie test.
Dariusz Murakowski [Fri, 20 Mar 2015 18:26:11 +0000 (14:26 -0400)]
ctags -a -R
Dariusz Murakowski [Fri, 20 Mar 2015 18:26:00 +0000 (14:26 -0400)]
ctags
Dariusz Murakowski [Tue, 24 Feb 2015 17:14:52 +0000 (12:14 -0500)]
Code to read Potts coupling parameters and calculate energy, from John Barton
20150218.
Dariusz Murakowski [Thu, 20 Nov 2014 21:52:45 +0000 (16:52 -0500)]
Actually do (and document) multiple runs without epitope.... And use initial population fraction....
Dariusz Murakowski [Thu, 20 Nov 2014 21:51:58 +0000 (16:51 -0500)]
(cosmetic) Personalized RunParameters for stochastic Gillespie simulation (SS).
Dariusz Murakowski [Thu, 20 Nov 2014 20:00:01 +0000 (15:00 -0500)]
Monte Carlo simulation of Boltzmann-distributed energy. Start Gillespie code. More build rules.
Dariusz Murakowski [Wed, 12 Nov 2014 20:45:17 +0000 (15:45 -0500)]
Fix sorted_vector compile errors (presumably due to gcc vs MSVC differences).
Dariusz Murakowski [Wed, 20 Aug 2014 20:26:56 +0000 (16:26 -0400)]
STL compliant sorted vector class (std::map replacement) from CodeProject.
Source:
http://www.codeproject.com/Articles/3217/An-STL-compliant-sorted-vector?display=Print
Introduction:
sorted_vector adapts a std::vector to the interface required by
std::set/std::multiset, thereby providing set/multiset and vector
functionality (random access) in one container.
Tests show that sorted_vector's element retrieval (find) speed
outperforms that of std::set/std::multiset by a factor of 2 (on most
machines). On the downward side is the poor performance of
sorted_vector's insert member function, because it inserts an element
somewhere in the middle of the sorted vector in order to preserve the
sort order. By using sorted_vector's low level interface one can solve
this performance bottleneck by inserting a bunch of objects using a
series of push_back's followed by a call to the member function sort,
which restores the sort order.
sorted_vector should be preferred over std::set/std::multiset if many
small elements must be stored. Most STL implementations use a variant of
a balanced tree to implement set and multiset, which imposes a per
element storage overhead of 3 pointers. The most important reason to use
a std::set/std::multiset instead of sorted_vector is the need to keep
iterators into a set/multiset while inserting more elements into the
set. These iterators remain valid in the case of a set/multiset, but are
invalidated in the case of a sorted_vector container.
Dariusz Murakowski [Sat, 26 Apr 2014 22:56:23 +0000 (18:56 -0400)]
Command line parameter for bonus/penalty applied to each epitope or total immune pressure.
Dariusz Murakowski [Thu, 17 Apr 2014 02:03:15 +0000 (22:03 -0400)]
Print supplementary output file (*.sum) with CSV sequence.
Dariusz Murakowski [Thu, 17 Apr 2014 01:47:20 +0000 (21:47 -0400)]
Detect when escape from *all* epitopes (vs *any* immune pressure).
Dariusz Murakowski [Thu, 17 Apr 2014 01:04:26 +0000 (21:04 -0400)]
GSL {headers,libraries} on lc2 are in default search path: {/usr/include,/usr/lib64}.
Dariusz Murakowski [Thu, 17 Apr 2014 00:53:21 +0000 (20:53 -0400)]
Allow calculating energy without including epitope bonus.
Dariusz Murakowski [Fri, 11 Apr 2014 21:48:03 +0000 (17:48 -0400)]
Update unit tests. Add new one with simple two-site parameters.
Dariusz Murakowski [Fri, 11 Apr 2014 18:27:12 +0000 (14:27 -0400)]
Print sequence as CSV (comma-separated).
Dariusz Murakowski [Thu, 10 Apr 2014 22:51:26 +0000 (18:51 -0400)]
Update unit tests.
Dariusz Murakowski [Thu, 20 Mar 2014 22:51:12 +0000 (18:51 -0400)]
Spread total immune pressure strength uniformly over targeted epitopes.
Dariusz Murakowski [Thu, 13 Mar 2014 23:07:53 +0000 (19:07 -0400)]
Start of Monte Carlo (static epitope calculation), copy WF code.
Dariusz Murakowski [Thu, 13 Mar 2014 23:06:04 +0000 (19:06 -0400)]
Don't fflush population-writing each time.
Dariusz Murakowski [Thu, 6 Mar 2014 20:41:08 +0000 (15:41 -0500)]
Print generation number on each line. (Need to update unit tests.)
Dariusz Murakowski [Mon, 17 Feb 2014 22:39:24 +0000 (17:39 -0500)]
Test all one- and two-epitope cases of WT/mut site combinations.
Dariusz Murakowski [Mon, 17 Feb 2014 22:37:46 +0000 (17:37 -0500)]
More comprehensive test framework.
Dariusz Murakowski [Mon, 17 Feb 2014 22:33:15 +0000 (17:33 -0500)]
Correctly parse multiple epitopes per file (using C++ streams), regardless of WT/mut.
Dariusz Murakowski [Mon, 17 Feb 2014 14:23:27 +0000 (09:23 -0500)]
Unit test for multiple-epitope input file.
Dariusz Murakowski [Mon, 17 Feb 2014 14:18:30 +0000 (09:18 -0500)]
Multiple epitopes; one per line in .ep file. All have same penalty for now.
Dariusz Murakowski [Mon, 17 Feb 2014 11:52:07 +0000 (06:52 -0500)]
Use '|' as epitope mut/WT field list separator (on single line).
Dariusz Murakowski [Mon, 17 Feb 2014 10:38:15 +0000 (05:38 -0500)]
Update unit tests for separate .st and .ep files.
Dariusz Murakowski [Mon, 17 Feb 2014 10:36:56 +0000 (05:36 -0500)]
Read population state and epitopes from separate files.
Dariusz Murakowski [Thu, 13 Feb 2014 17:14:27 +0000 (12:14 -0500)]
Extra output and tests for debugging.
Dariusz Murakowski [Thu, 13 Feb 2014 17:05:02 +0000 (12:05 -0500)]
Start framework for targeting multiple epitopes.
Dariusz Murakowski [Tue, 4 Feb 2014 22:19:43 +0000 (17:19 -0500)]
Basic unit testing framework.
Dariusz Murakowski [Tue, 4 Feb 2014 20:01:52 +0000 (15:01 -0500)]
Check for file-opening / existence errors (vs segfault). write_mod for general Hamiltonian. --help flag.
Dariusz Murakowski [Thu, 26 Sep 2013 22:38:00 +0000 (18:38 -0400)]
Add write_mod option to write population at regular time intervals (two-site/two-allele only).
Dariusz Murakowski [Mon, 16 Sep 2013 15:43:15 +0000 (11:43 -0400)]
Locate segfault for small N (population size = 0). Seed as additional run parameter. Concatenate source files?
Dariusz Murakowski [Fri, 17 May 2013 14:27:10 +0000 (10:27 -0400)]
Special two-site + two-allele (two-locus + binary) Hamiltonian with all parameters passed as command line arguments.
Dariusz Murakowski [Wed, 15 May 2013 14:10:01 +0000 (10:10 -0400)]
More output for non-epitope runs. Assuage compiler warnings of unused parameters and signed/unsigned int comparison.
Dariusz Murakowski [Tue, 14 May 2013 21:01:52 +0000 (17:01 -0400)]
Wright-Fisher code by Tom Butler (via John Barton).
Dariusz Murakowski [Tue, 14 May 2013 19:53:11 +0000 (15:53 -0400)]
Just use the GNU Scientific Library (GSL) for RNG. (But also include my attempt at copying over the relevant bits.)
Dariusz Murakowski [Fri, 5 Apr 2013 05:37:53 +0000 (01:37 -0400)]
Add Mersenne Twister RNG library/header. Generalize to stream<< any std::map<T> as CSV-like string.
Dariusz Murakowski [Fri, 5 Apr 2013 03:53:59 +0000 (23:53 -0400)]
Print mutset_t (to stream using operator<<) as CSV-like string.
Dariusz Murakowski [Fri, 5 Apr 2013 03:28:36 +0000 (23:28 -0400)]
Start of Wright-Fisher dynamics using STL. Mutations stored as std::set, species counts in std::map.