Skip to content

Commit

Permalink
improved figure 1 and example.md
Browse files Browse the repository at this point in the history
  • Loading branch information
SamiralVdB committed Jul 25, 2024
1 parent 68e00d7 commit e4ce8e0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
9 changes: 6 additions & 3 deletions Figures/Figure1_toy_ec_pam_overflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,13 @@ def plot_sensitivities(fig, grdspec, glc_rates, mu_list, substrate, byproduct, t
sub = mu_ax.plot(glc_rates, substrate, color='orange', linewidth=3)
byp = mu_ax.plot(glc_rates, byproduct, color='purple', linewidth=3)
prot_ax = mu_ax.twinx()
etotact = prot_ax.plot(glc_rates, total_active_protein, color = 'darkred', linewidth = 3, linestyle = 'dotted')
etotact = prot_ax.plot(glc_rates, [p*10 for p in total_active_protein], color = 'darkred', linewidth = 3, linestyle = 'dotted')
prot_ax.set_ylabel('active enzyme sector (AES) ($g/g_{protein}$)')
prot_ax.set_ylim([0.49,0.4902])
prot_ax.set_yticks([0.49,0.4901,0.4902])
prot_ax.set_ylim([4.9,4.9022])
prot_ax.annotate('$\cdot 10^{-1}$',xy=(0.98, 0.1), xycoords='figure fraction',
xytext=(0.98, 1.1), textcoords='axes fraction',
va='top', ha='left', fontsize=FONTSIZE*0.65)
prot_ax.set_yticks([4.9,4.901,4.902])
mu_ax.legend([sub, byp, mu, etotact], labels = ['R1', 'R9', 'R7', 'AES'], handles=sub+byp+mu+etotact,loc = 'upper left')
mu_ax.xaxis.set_visible(False)
# mu_ax.legend([mu], labels=['growth rate'], loc='center left')
Expand Down
Binary file modified Figures/Figure1_toy_model-sensitivities_overflow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 6 additions & 2 deletions docs/docs/example.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,13 @@ associations required to build the protein-reaction relations in the model. It h
```json
{'R1':
{'E1':
{'f': forward kcat, 'b': backward kcat, 'molmass': molar mass, 'protein_reaction_relation': [['E1']]},
{'f': forward kcat, 'b': backward kcat,
'molmass': molar mass,
'protein_reaction_relation': [['E1']]},
'E2':
{'f': forward kcat, 'b': backward kcat, 'molmass': molar mass, 'protein_reaction_relation': [['E1']]}
{'f': forward kcat, 'b': backward kcat,
'molmass': molar mass,
'protein_reaction_relation': [['E1']]}
}
}
```
Expand Down

0 comments on commit e4ce8e0

Please sign in to comment.