Commit e957ee8b authored by St. Elmo's avatar St. Elmo
Browse files

can't download a file in Documenter.jl

parent 9c9b6bc3
using Documenter, COBREXA
# download core model
download("http://bigg.ucsd.edu/static/models/e_coli_core.json", "e_coli_core.json")
# download("http://bigg.ucsd.edu/static/models/e_coli_core.json", "e_coli_core.json")
makedocs(modules = [COBREXA],
clean = false,
......
......@@ -24,6 +24,7 @@ using COBREXA
using JuMP
using Tulip
download("http://bigg.ucsd.edu/static/models/e_coli_core.json", "e_coli_core.json")
model = read_model("e_coli_core.json")
biomass = findfirst(model.reactions, "BIOMASS_Ecoli_core_w_GAM")
......@@ -122,4 +123,5 @@ set_optimizer(cbm, Tulip.Optimizer)
optimize!(cbm)
sol = map_fluxes(v, model)
rm("e_coli_core.json") # hide
```
......@@ -51,12 +51,11 @@ using COBREXA
using JuMP
using Tulip
download("http://bigg.ucsd.edu/static/models/e_coli_core.json", "e_coli_core.json")
model = read_model("e_coli_core.json")
biomass = findfirst(model.reactions, "BIOMASS_Ecoli_core_w_GAM")
optimizer = Tulip.Optimizer
sol = fba(model, biomass, optimizer)
rm("e_coli_core.json") # hide
```
......@@ -10,7 +10,9 @@ read_model(file_location::String)
```@example ioexample
using COBREXA
download("http://bigg.ucsd.edu/static/models/e_coli_core.json", "e_coli_core.json")
model = read_model("e_coli_core.json")
rm("e_coli_core.json") # hide
model # pretty printing
```
......
......@@ -12,7 +12,9 @@ using COBREXA
using JuMP
using Tulip
download("http://bigg.ucsd.edu/static/models/e_coli_core.json", "e_coli_core.json")
model = read_model("e_coli_core.json")
rm("e_coli_core.json") # hide
optimizer = Tulip.Optimizer
biomass = findfirst(model.reactions, "BIOMASS_Ecoli_core_w_GAM")
cons = Dict("EX_glc__D_e" => (-12.0, -12.0))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment