Skip to content

Commit

Permalink
fix gene list creation
Browse files Browse the repository at this point in the history
  • Loading branch information
cdanielmachado committed Nov 8, 2017
1 parent 62f54f3 commit 8461af1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion carveme/reconstruction/carving.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def carve_model(model, reaction_scores, outputfile=None, flavor=None, inplace=Tr
if r_id in model.reactions:
try:
gpr = parse_gpr_rule(row['GPR'])
model.reactions[r_id].set_gpr_association(gpr)
model.set_gpr_association(r_id, gpr, add_genes=True)
except:
print 'Failed to parse:', row['GPR']

Expand Down

0 comments on commit 8461af1

Please sign in to comment.