Repository navigation
NFsim 2.0.1 fixes bugs reported after the 2.0.0 release, most of them by Bill
Hlavacek (#132 to #152). Several change results for the models they affect.
Numbers in parentheses are GitHub issues and pull requests.
Changes that can alter results
(a) A rule that deletes a whole species (no DeleteMolecules) fired once per
match of its pattern, where BioNetGen gives it one reaction per complex, so a
homodimer was deleted at twice the rule's rate and a 4-ring at four times.
MatchOnce, which asks for the same counting, had no effect on a reactant the
rule changes and was dropped with a warning on a local-function rule. Both are
now counted once per complex (#148, #149). A Michaelis-Menten rule cannot be
corrected this way; it stops with an error if it picks a complex that holds two
matches of such a reactant.
(b) + between product patterns and . within one are now checked for every
molecule a rule's products contain, not only at the bonds it deletes. A rule
with three products, such as A.B.C -> A + B + C, fired where two of the
products stayed connected (#132, #139).
(c) A rate law that reads a table function of time was evaluated only when a
reaction fired, so a rate that starts at 0 never fired, and a step or a ramp
took effect late. NFsim now reads the table again at each of its x values and
integrates the propensity across a linear ramp (#142, #143). A local function
that reads such a table is refused.
(d) sim fired the reaction drawn past its end time. Output files were not
affected, but -ss saved the state after that reaction, and the next RNF sim
started from its time (#145, #146). The random numbers an RNF script draws
after its first sim change as a result.
(e) With -no-bscb, a molecule reached from two reactants in one complex was
added to the Molecules observables twice, so conserved totals grew (#133,
#138).
Errors that used to pass silently
(f) A rate law type NFsim does not implement, such as Hill, printed "Quitting."
and the model ran without the rule. The load now fails (#134, #135).
(g) A rate law that reads reactant_N() on a rule with fewer than N reactants
crashed or read past the reactant counts. It is now refused at load, and a
parameter whose name contains reactant_N, such as kreactant_2, is no longer
taken for one (#151, #154).
(h) RNF scripts: a rule whose rate is 0 at load is kept when the script sets its
rate parameter, so set and update can switch it on (#137, #140); set and
update now reach the kcat and Km of a Michaelis-Menten rule (#136, #141); and
a command is recognized by its first word, so set Keq 5 no longer runs as
eq 5 (#144, #147).
(i) A TFUN data file is read one point per line, with # comments, so
BioNetGen's .tfun files load. A malformed line is reported with its line
number (#150, #153).
Other
(j) The optional ExprTk expression parser builds again and agrees with muParser
on rint(), numeric literals, and the expressions muParser refuses (#152,
#155).
Known issues
- While complexes are tracked, a reactant that a rule does not transform is
counted once per complex. When a complex splits or joins farther from that
reactant than the traversal limit reaches, the rule's propensity is not
updated until the rule fires again or something else changes the reactant
(#116; see the 2.0.0 notes for an example). - A rule with a local-function rate that reads one reactant, beside a
catalyst the rule does not change, counts that catalyst once per matching
molecule instead of once per complex. With a homodimer catalyst such as
%x:A(s~0) + E(d!1).E(d!1) -> A(s~1) + E(d!1).E(d!1) f(x)the rule runs at
twice its rate, and with a homotrimer at three times. A heterodimer catalyst,
an elementary rate, and a local function that reads the catalyst instead
(A(s~0) + %x:E(d!1).E(d!1) -> ...) all give the right rate (#156). - A compartment's size is fixed when the model is loaded (#105).
- With
-connect, a seeded run of some models is not identical to the same run
without it, although averages agree (#116).
Binaries
The Mac binary is universal (arm64 and Intel), and the Windows binary is statically linked. Each archive contains the single NFsim executable. The Linux and Windows binaries were built by CI from the tagged commit. GitHub's macOS runners were unavailable for that run, so the Mac binary is CI's build of the release branch one commit earlier (d1135eb), which differs from the tag only in README text.