Skip to content

Commit

Permalink
fixup docs
Browse files Browse the repository at this point in the history
  • Loading branch information
stelmo committed Aug 11, 2024
1 parent c1bdcae commit c2d31b8
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/src/3-parameter-estimation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,4 @@ true_parameter_values
@test abs(estimated_parameters[r3] - true_parameter_values[r3]) <= 0.1 #src
@test abs(estimated_parameters[r4] - true_parameter_values[r4]) <= 0.1 #src
@test abs(estimated_parameters[r4] - true_parameter_values[r4]) <= 0.1 #src
@test all(losses[2:end] .<= losses[1:end-1]) #src strictly decreasing
@test all(losses[2:end] .<= losses[1:end-1]) #src
44 changes: 44 additions & 0 deletions docs/src/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,51 @@ Pages = ["src/parameter_linearvalue.jl"]

### ParameterQuadraticValue

```@autodocs
Modules = [DifferentiableMetabolism]
Pages = ["src/parameter_quadraticvalue.jl"]
```

### ParameterBound

```@autodocs
Modules = [DifferentiableMetabolism]
Pages = ["src/parameter_bound.jl"]
```

### ParameterIsozyme

```@autodocs
Modules = [DifferentiableMetabolism]
Pages = ["src/parameter_isozyme.jl"]
```
## Parameterized models

### Kinetic models

```@autodocs
Modules = [DifferentiableMetabolism]
Pages = ["src/kinetic_model.jl"]
```

### Solving models

```@autodocs
Modules = [DifferentiableMetabolism]
Pages = ["src/solver.jl"]
```

### Pruning models

```@autodocs
Modules = [DifferentiableMetabolism]
Pages = ["src/prune.jl"]
```

## Differentiation

```@autodocs
Modules = [DifferentiableMetabolism]
Pages = ["src/differentiate.jl"]
```

4 changes: 0 additions & 4 deletions src/get_constraints.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ function equality_constraints(m::ConstraintTrees.ConstraintTree)
sink
end

export equality_constraints

function get_equality_constraints(m::ConstraintTrees.ConstraintTree, sink)
get_equality_constraints.(values(m), Ref(sink))
end
Expand Down Expand Up @@ -75,8 +73,6 @@ function inequality_constraints(m::ConstraintTrees.ConstraintTree)
]
end

export inequality_constraints

function get_inequality_constraints(m::ConstraintTrees.ConstraintTree, sink)
get_inequality_constraints.(values(m), Ref(sink))
end
Expand Down
6 changes: 6 additions & 0 deletions src/kinetic_model.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
"""
$(TYPEDSIGNATURES)
Essentially an enzyme constrained metabolic model, but the kcat can be a
arbitrary symbolic function.
"""
function build_kinetic_model(
model::AbstractFBCModels.AbstractFBCModel;
reaction_isozymes::Union{
Expand Down
12 changes: 10 additions & 2 deletions src/prune.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Changes from copied code are indicated.
=#

"""
Expand Down Expand Up @@ -66,6 +64,11 @@ end

export prune_model

"""
$(TYPEDSIGNATURES)
TODO
"""
function prune_reaction_isozymes(reaction_isozymes, ec_solution, gene_zero_tol)
active_isozymes = [
rid => iso_id for iso_amounts in
Expand Down Expand Up @@ -99,6 +102,11 @@ end

export prune_reaction_isozymes

"""
$(TYPEDSIGNATURES)
TODO
"""
function prune_gene_product_molar_masses(
gene_product_molar_masses,
ec_solution,
Expand Down

0 comments on commit c2d31b8

Please sign in to comment.