Skip to content

Commit b109043

Browse files
authored
Merge pull request #9 from isaacsas/rssa-fix
rssa str fix
2 parents dc1bd10 + 6242fe1 commit b109043

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,12 @@ fname = "PATH/TO/Repressilator.net"
2020
prnbng = loadrxnetwork(BNGNetwork(), "BNGRepressilator", fname)
2121
```
2222
Here `BNGNetwork` is a type specifying the file format that is being loaded, and `BNGRepressilator` specifies the type of the generated `min_reaction_network`, see [DiffEqBiological](https://github.com/JuliaDiffEq/DiffEqBiological.jl/). `prnbng` is a `ParsedReactionNetwork` structure with the following fields:
23-
- `rn`, a DiffEqBiological `min_reaction_network`
23+
- `rn`, a DiffEqBiological `reaction_network`
2424
- `u₀`, the initial condition (as a `Vector{Float64}`)
2525
- `p`, the parameter vector (as a `Vector{Float64}`)
2626
- `paramexprs`, the parameter vector as a mix of `Numbers`, `Symbols` and `Exprs`. `p` is generated by evaluation of these expressions and symbols.
2727
- `symstonames`, a `Dict` mapping from the internal `Symbol` of a species used in the generated `min_reaction_network` to a `Symbol` generated from the name in the .net file. This is necessary as BioNetGen can generate exceptionally long species names, involving characters that lead to malformed species names when used with `DiffEqBiological`.
2828
- `groupstoids`, a `Dict` mapping the `Symbols` (i.e. names) for any species groups defined in the .net file to a vector of indices into `u₀` where the corresponding species are stored.
29-
- `rnstr`, a string representation of the full DiffEqBiological DSL command that was evaluated to generate the network.
3029

3130
Given `prnbng`, we can construct and solve the corresponding ODE model for the reaction system by
3231
```julia
@@ -46,4 +45,4 @@ initialconditionf = "PATH/TO/FILE"
4645
networkf = "PATH/TO/FILE"
4746
rssarn = loadrxnetwork(RSSANetwork(), "RSSARxSys", initialconditionf, networkf)
4847
```
49-
Here `RSSANetwork` specifies the type of the file to parse, and `RSSARxSys` gives the type of the generated `min_reaction_network`. `rssarn` is again a `ParsedReactionNetwork`, but only the `rn`, `u₀` and `rnstr` fields will now be relevant (the remaining fields will be set to `nothing`).
48+
Here `RSSANetwork` specifies the type of the file to parse, and `RSSARxSys` gives the type of the generated `reaction_network`. `rssarn` is again a `ParsedReactionNetwork`, but only the `rn` and `u₀` fields will now be relevant (the remaining fields will be set to `nothing`).

src/parsing_routines_rssafiles.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,5 @@ function loadrxnetwork(ft::RSSANetwork, networkname, specs_ic_file, rxs_file; kw
7373
rn,rnstr = build_rxnetwork(ft, networkname, rxstrs, rxrates; kwargs...)
7474
initialpop = get_init_condit(ft, rn, specs_ic)
7575

76-
ParsedReactionNetwork(rn, initialpop; rnstr=rnstr)
76+
ParsedReactionNetwork(rn, initialpop)
7777
end

0 commit comments

Comments
 (0)