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
a0e271f1
Commit
a0e271f1
authored
Apr 17, 2018
by
SOLIMAN Sylvain
Browse files
only support for conservation laws
parent
d3f3287f
Changes
1
Hide whitespace changes
Inline
Side-by-side
lemon.pl
View file @
a0e271f1
...
...
@@ -107,7 +107,8 @@ export_lemon_stream(Id, Stream) :-
Conserv
,
(
invariants
:
base_mol
(
List
),
atomic_list_concat
(
List
,
','
,
Conserv
)
maplist
(
no_coeff
,
List
,
LList
),
atomic_list_concat
(
LList
,
','
,
Conserv
)
),
ConservList
),
...
...
@@ -158,6 +159,15 @@ sign('+', 1).
sign
(
'-'
,
-
1
).
%! no_coeff(+Coeff, -NoCoeff) is det.
%
% from a species with or without stoichiometry Coeff, remove the optional
% coefficient to get the species without stoichiometry NoCoeff
no_coeff
(
_
*
V
,
V
)
:-
!.
no_coeff
(
X
,
X
).
%! normalize_reaction(+Item, -NormalizedStoichiometry, -Negated) is det.
%
% compute a sorted stoichiometry list for the reaction Item as
...
...
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