Skip to content

Commit 4de3f68

Browse files
committed
Revamp single swap statistics
1 parent 52ab1ea commit 4de3f68

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

cosa_get_num_active_nad_nadp_reactions.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,15 @@
3131
flux = results[growth_rate]["values"][reaction_id]
3232
if flux > 1e-6:
3333
if reaction_id not in active_reactions:
34-
active_reactions.append(reaction_id)
34+
active_reactions.append(
35+
reaction_id
36+
.replace("_ORIGINAL_NADP_TCOSA", "")
37+
.replace("_ORIGINAL_NAD_TCOSA", "")
38+
.replace("_VARIANT_NAD_TCOSA", "")
39+
.replace("_VARIANT_NADP_TCOSA", "")
40+
.replace("_FWD", "")
41+
.replace("_REV", "")
42+
)
3543
print(active_reactions)
3644
active_reactions = list(set(active_reactions))
3745
print(f"Num active reactions:", len(active_reactions))

cosa_swap_analysis_statistics.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@
114114
id_optmdf_at_one = list(set(make_base(id_optmdf_at_one)))
115115
id_optsubmdf_at_one = list(set(make_base(id_optsubmdf_at_one)))
116116

117-
print(f"OptMDF at all (n={len(id_optmdf_at_all)}): {id_optmdf_at_all}")
118-
print(f"OptSubMDF at all (n={len(id_optsubmdf_at_all)}): {id_optsubmdf_at_all}")
117+
# print(f"OptMDF at all (n={len(id_optmdf_at_all)}): {id_optmdf_at_all}")
118+
# print(f"OptSubMDF at all (n={len(id_optsubmdf_at_all)}): {id_optsubmdf_at_all}")
119119
print(f"OptMDF at >= 1 (n={len(id_optmdf_at_one)}): {id_optmdf_at_one}")
120120
print(f"OptSubMDF at >= 1 (n={len(id_optsubmdf_at_one)}): {id_optsubmdf_at_one}")
121121

0 commit comments

Comments
 (0)