Debian Codegraph @

NEWS

raw
1 version 2.0
2
3 Program rewritten.
4
5 These changes are not listed in any particular order and do not include every
6 single change made. Note: the format of the profile files is unchanged; the new
7 pIRS can read the same profile files as the old one. Also, few changes were
8 made to the actual simulation algorithms. (However, one algorithmic change was
9 made in how the GC content bias works; it now uses the full fragment to compute
10 GC content.)
11
12 - `pirs simulate' can now be compiled as a multi-threaded program. I've
13 observed speedup of 17x compared to the old version when running on a
14 server-class computer. However, compared to the new version without
15 multi-threading support, the speedup is less because the new version is faster
16 than the old version even if only 1 thread is used. The exact speedup will
17 depend on the computer used and the simulation parameters and inputs. Every
18 simulated read pair needs to pass through the thread running
19 read_info_writer_thread_proc(), so this may be the bottleneck in the
20 mulithreaded version; however, this is definitely not the bottleneck in the
21 serial version, since it takes a long time to do the base calling to generate
22 substitution errors and quality values.
23
24 - The random number generator now uses a 64-bit Mersenne twister algorithm.
25 This may reduce bias when doing large simulations. For example, if you are
26 simulating reads from a 100 megabase sequence, you don't want to use 32-bit
27 random numbers because some numbers would (for example) be 21 mod 100000000
28 and other numbers would be 20 mod 100000000; you really want every position to
29 be equally probable. There are 2 versions of the 64-bit Mersenne twister
30 code: the normal version, and the SSE2-accelerated version. Both are written
31 by the inventor of the algorithm. By default, the SSE2-accelerated version is
32 used; to use the normal version, provide the --disable-sse2 option to the
33 configure script.
34
35 - Long command line options are now supported for both pirs simulate and pirs
36 diploid. Some options were renamed, or changed from requiring an argument to
37 being a boolean option. There are some new options, such as --quiet,
38 --no-logs, and --random-seed. Command line usage information is improved.
39 The "-i" and "-I" options were removed; instead you should directly supply the
40 reference sequences on the command line as non-option arguments. `pirs
41 simulate' will simulate reads from all reference sequences specified. By
42 default, reads are taken at full coverage from all sequences, so if you are
43 simulating a diploid sequence, you must use half coverage, or else provide the
44 --diploid option. To help avoid confusion, this is noted in the program help,
45 and a notice is printed if there were 2 input sequences but --diploid was not
46 provided.
47
48 - The old version required the `pirs' binary to be invoked with an absolute
49 path, which is annoying and nonstandard. Instead, the new version installs
50 the profiles to $pkgdatadir, and these paths are hard-coded into the binary.
51 In other words, just run `./configure && make install' (optionally specifying
52 --prefix for configure), and pIRS will find its profiles in the installed
53 location.
54
55 - The default output format is now text; use -c gzip or --output-file-type=gzip
56 to write gzip files. I think it makes more sense to have the default be text.
57
58 - GC content bias is now based on the full fragment. This may be more accurate.
59 See: "Summarizing and correcting the GC content bias in high-throughput
60 sequencing",
61 http://nar.oxfordjournals.org/content/early/2012/02/08/nar.gks001.long
62
63 - Cumulative probability arrays that previously were using doubles are now using
64 64-bit unsigned integers. This avoids the need to convert random numbers to
65 doubles before using them, and it also increases the accuracy since we can use
66 2**64 different random values instead of just the doubles between 0.0 and 1.0.
67
68 - BaseCallingProfile, IndelProfile, and GCBiasProfile classes have been added to
69 avoid cluttering the main code. For example, we call a base with the
70 BaseCallingProfile::call_base() function. To decide whether to accept an
71 insert based on GC content, simply call GCBiasProfile::accept_insert().
72
73 - Code duplication has been reduced. Instead of copying code to simulate
74 base-calling for each of the two reads, we simply use the same functions with
75 slightly different parameters. Similarly, instead of copying the code to
76 output a read two times (one for each read), we just have an output_read()
77 function that is called for both reads.
78
79 - pirs diploid now uses one random number to determine the heterozygosity type
80 at a base, so it doesn't need to generate multiple random numbers per base.
81
82 - Code in pirs diploid has been de-duplicated; for example there is a function
83 to try doing an indel that is called 4 times.
84
85 - pirs diploid now logs both the original position and the new position for
86 SNPs, since they may differ because of indels.
87
88 - More information (such as the time and program command line) is logged to the
89 beginning of each of the log files. Some of the parameters echo echoed to
90 standard output.
91
92 - `configure' script now supports conditionally omitting support for either
93 `pirs simulate' or `pirs diploid' if desired. By default, both are supported.
94
95 - InputStream and OutputStream classes were added that automatically handle
96 compressed and uncompressed files, and they always exit with an error message
97 if a read or write error occurs.
98
99 - Some inefficient data structures and unnecessary allocation and deallocation
100 of C++ objects have been removed from the inner simulation loop. I had
101 originally changed the code to use a lot of C arrays, but then I introduced
102 the `struct Read', which contains some std::vector's. That's fine, since the
103 `struct Read's are re-used and we don't have to waste time allocating and
104 deleting memory in the inner loop.
105
106 - There is now no dependency on Boost. Strings are tokenized with strtok().
107 (Yes, strtok() is not reentrant, but only one thread is loading the profiles.)
108
109 - Code duplication in the matrix loading has been reduced. There is a
110 for_line_in_matrix() function that calls a function with each line of the
111 specified matrix in a file (such as "[DistMatrix]").
112
113 - Matrix allocation and deletion code has been de-duplicated; call the
114 new_matrix() and delete_matrix() functions to allocate and delete
115 multi-dimensional matrices.
116
117 - The Qval2Qval array is now a temporary array constructed during the loading of
118 the base-calling profile; it is not kept around because the DistMatrix is
119 modified to take the new quality value distribution into account.
120
121 - For the non-quality-transition mode, there are no longer separate matrices for
122 looking up the quality score, then looking up the sequence base given that
123 quality score. Instead, there is just one matrix where we lookup both the
124 quality score and sequence base, given the cycle number and reference base.
125 This was made possible partly by incorporating the Qval2Qval array into the
126 matrix and not keeping it around.
127
128 - search_location() has a simplified implementation for arrays of 64-bit
129 unsigned integers. It's guaranteed that the last element of the arrays is
130 0xffffffffffffffff, so we can never not find a random number in the arrays.
131
132 - INSTALL, README, NEWS, and AUTHORS updated. I just inserted the new program
133 help into the Usage section in the README, although maybe the user should be
134 re-directed to run the program help option instead.
135
136 version 1.11
137 Fix one bug which lead to terminate called after throwing an instance of 'std::out_of_range' while simulate indel-error on reads with "pirs simulate".
138
139 version 1.10
140 Fix one bug which will result in overlapping variation region in program "pirs diploid".
141 Add option -e to simulate different substiution-error rate in program "pirs simulate".
142
143 version 1.01
144 Add EAMSS filter from CASAVA v.1.8.0 .
145
146 version 1.00
147 Initial release.