Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
COBREXA.jl
Manage
Activity
Members
Plan
External wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LCSB-BioCore
COBREXA.jl
Commits
d8d4cc4c
Unverified
Commit
d8d4cc4c
authored
3 years ago
by
cylon-x
Committed by
Miroslav Kratochvil
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
automatic formatting changes
parent
a2687037
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/base/utils/Reaction.jl
+3
-8
3 additions, 8 deletions
src/base/utils/Reaction.jl
with
3 additions
and
8 deletions
src/base/utils/Reaction.jl
+
3
−
8
View file @
d8d4cc4c
...
...
@@ -17,10 +17,7 @@ function check_duplicate_reaction(
for
(
k
,
rxn
)
in
rxns
if
rxn
.
id
!=
crxn
.
id
# skip if same ID
if
only_metabolites
# only check if metabolites are the same
if
issetequal
(
keys
(
crxn
.
metabolites
),
keys
(
rxn
.
metabolites
),
)
if
issetequal
(
keys
(
crxn
.
metabolites
),
keys
(
rxn
.
metabolites
))
return
k
end
else
# also check the stoichiometric coefficients
...
...
@@ -31,10 +28,8 @@ function check_duplicate_reaction(
break
end
end
if
reaction_checker
&&
issetequal
(
keys
(
crxn
.
metabolites
),
keys
(
rxn
.
metabolites
),
)
if
reaction_checker
&&
issetequal
(
keys
(
crxn
.
metabolites
),
keys
(
rxn
.
metabolites
))
return
k
end
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment