From 50ee36f38740b72d3f4718871826098447c452eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nina=20Ro=C3=9Fbach?= <167868803+niinina@users.noreply.github.com> Date: Fri, 7 Jun 2024 11:25:43 +0200 Subject: [PATCH] Update core_pan.py #121 --- src/refinegems/analysis/core_pan.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/refinegems/analysis/core_pan.py b/src/refinegems/analysis/core_pan.py index 74243ae..5567c11 100644 --- a/src/refinegems/analysis/core_pan.py +++ b/src/refinegems/analysis/core_pan.py @@ -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]