Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lifeware
biocham
Commits
daf435ab
Commit
daf435ab
authored
Jul 29, 2020
by
Mathieu Hemery
Browse files
Add the splitting of two ways kinetics
parent
c5e531f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
model_correction.pl
View file @
daf435ab
...
...
@@ -31,7 +31,13 @@ correct_model :-
reactions_with_species
(
List_Molecule
,
List_Reaction
),
forall
(
member
(
Reaction
,
List_Reaction
),
remove_null_kinetic
(
Reaction
)
(
remove_null_kinetic
(
Reaction
),!
;
split_bidirectional_reaction
(
Reaction
),!
;
true
)
).
%! remove_null_kinetic(+Reaction)
...
...
@@ -43,6 +49,20 @@ remove_null_kinetic(Expression for Reaction) :-
is_null
(
Expression
)
->
delete_reaction
(
Expression
for
Reaction
)
).
%! split_bidirectional_reaction(+Reaction)
%
% Split a bidirection reaction in two
split_bidirectional_reaction
(
Expression
for
Reactant
=>
Product
)
:-
(
distribute
(
Expression
,
DistExpr
),
DistExpr
=
Up
-
Down
->
delete_reaction
(
Expression
for
Reactant
=>
Product
),
add_reaction
(
Up
for
Reactant
=>
Product
),
add_reaction
(
Down
for
Product
=>
Reactant
)
;
true
).
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment