Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
João Cardoso committed Jun 15, 2015
1 parent 3c1c239 commit 1721d3e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cameo/strain_design/pathway_prediction/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@

class PathwayResult(Result):
def data_frame(self):
return DataFrame([[r.id, r.reaction, r.lower_bound, r.upper_bound] for r in self.pathway
if not r.id.startswith("adapter")],
return DataFrame([[r.id, r.build_reaction_string(use_metabolite_names=True), r.lower_bound, r.upper_bound]
for r in self.pathway if not r.id.startswith("adapter")],
columns=["id", "equation", "lower_bound", "upper_bound"])

def __init__(self, pathway, exchange, *args, **kwargs):
Expand Down Expand Up @@ -173,8 +173,8 @@ def __init__(self, model, universal_model=None, mapping=None, compartment_regexp
y_vars = list()
switches = list()
for reaction in reactions:
if reaction.id.startswith('DM_'):
continue # demand reactions don't need integer switches
# if reaction.id.startswith('DM_'):
# continue # demand reactions don't need integer switches
y = self.model.solver.interface.Variable('y_'+reaction.id, lb=0, ub=1, type='binary')
y_vars.append(y)
if reaction.reverse_variable is not None:
Expand Down

0 comments on commit 1721d3e

Please sign in to comment.