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
Gitlab will go in to maintenance on Friday 5:30pm since SIU is doing Isilon maintenance and we use isilon shares on the Gitlab
You are on a read-only GitLab instance.
Show more breadcrumbs
LCSB-BioCore
COBREXA.jl
Commits
19a68da0
Commit
19a68da0
authored
3 years ago
by
Miroslav Kratochvil
Browse files
Options
Downloads
Patches
Plain Diff
explain the multi-gene knockouts better
Fixes #520 A complete fix might be better in the future (see #552).
parent
ea0cce13
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/analysis/modifications/knockout.jl
+13
-1
13 additions, 1 deletion
src/analysis/modifications/knockout.jl
with
13 additions
and
1 deletion
src/analysis/modifications/knockout.jl
+
13
−
1
View file @
19a68da0
...
...
@@ -2,7 +2,19 @@
knockout(gene_ids::Vector{String})
A modification that zeroes the bounds of all reactions that would be knocked
out by the specified genes (effectively disables the reactions).
out by the combination of specified genes (effectively disabling the
reactions).
A slightly counter-intuitive behavior may occur if knocking out multiple genes:
Because this only changes the reaction bounds, multiple gene knockouts _must_
be specified in a single call to [`knockout`](@ref), because the modifications
have no way to remember which genes are already knocked out and which not.
In turn, having a reaction that can be catalyzed either by Gene1 or by Gene2,
specifying `modifications = [knockout(["
Gene1
", "
Gene2
"])]` does indeed disable
the reaction, but `modifications = [knockout("
Gene1
"), knockout("
Gene2
")]` does
_not_ disable the reaction (although reactions that depend either only on Gene1
or only on Gene2 are disabled).
"""
knockout
(
gene_ids
::
Vector
{
String
})
=
(
model
,
optmodel
)
->
_do_knockout
(
model
,
optmodel
,
gene_ids
)
...
...
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