Skip to content

Commit

Permalink
Update core_pan.py
Browse files Browse the repository at this point in the history
  • Loading branch information
niinina committed Jun 7, 2024
1 parent cc69b88 commit 50ee36f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/refinegems/analysis/core_pan.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ def compare_to_core_pan(model:cobra.Model, cp_model:cobra.Model, based_on:Litera
case 'id':

# separate cp_model reactions into core and pan list
core_reac_list = [_.id for _ in cp_model.reactions if _.notes['pan-core']=='core']
pan_reac_list = [_.id for _ in cp_model.reactions if _.notes['pan-core']=='pan']
core_reac_list = [_.id for _ in cp_model.reactions if _.notes['core-pan']=='core']
pan_reac_list = [_.id for _ in cp_model.reactions if _.notes['core-pan']=='pan']

# compare model to the core and pan reaction list
results.core_reac = [_.id for _ in model.reactions if _.id in core_reac_list]
Expand Down

0 comments on commit 50ee36f

Please sign in to comment.