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
c5e531f4
Commit
c5e531f4
authored
Jul 29, 2020
by
Mathieu Hemery
Browse files
Start correction by removing null kinetics
parent
21646af9
Changes
2
Hide whitespace changes
Inline
Side-by-side
model_correction.pl
0 → 100644
View file @
c5e531f4
/*
Implement the automatic correction of models loaded from a sbml file
Coder: M. Hemery
*/
:-
module
(
correction
,
[
% Commands
correct_model
/
0
% API
]
).
% Only for separate compilation/linting
:-
use_module
(
arithmetic_rules
).
:-
use_module
(
doc
).
:-
use_module
(
formal_derivation
).
:-
use_module
(
reaction_rules
).
:-
use_module
(
util
).
correct_model
:-
biocham_command
,
doc
(
''
),
single_model
(
ModelId
),
findall
(
Molecule
,
identifier_kind
(
ModelId
,
Molecule
,
object
),
List_Molecule
),
reactions_with_species
(
List_Molecule
,
List_Reaction
),
forall
(
member
(
Reaction
,
List_Reaction
),
remove_null_kinetic
(
Reaction
)
).
%! remove_null_kinetic(+Reaction)
%
% Detect and remove reactions with identically null kinetics
remove_null_kinetic
(
Expression
for
Reaction
)
:-
(
is_null
(
Expression
)
->
delete_reaction
(
Expression
for
Reaction
)
;
true
).
toc.org
View file @
c5e531f4
...
...
@@ -52,6 +52,7 @@
* Importing and Exporting BIOCHAM Models
** Biocham files
- models.pl
- model_correction.pl
** SBML and SBML-qual files
- sbml_files.pl
- qual_files.pl
...
...
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